ctr-proxy-puppet-1.service.j2 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. [Unit]
  2. Description=Container proxy-puppet-1
  3. [Service]
  4. Type=simple
  5. TimeoutStartSec=5m
  6. Slice=container-small.slice
  7. ExecStartPre=-/usr/bin/docker rm "proxy-puppet-1"
  8. ExecStart=/usr/bin/docker run --rm --name "proxy-puppet-1" \
  9. --volumes-from proxy-shared-data-1 \
  10. -v /var/lib/docker/volumes/proxy_puppet/var/lib/puppet/ssl:/var/lib/puppet/ssl \
  11. -v /var/lib/docker/volumes/proxy_puppet/etc/puppet:/etc/puppet \
  12. -a stdout -a stderr \
  13. "docker-registry.ops.rhcloud.com/oso-v2-puppet:{{ oo_env }}"
  14. # Set links (requires container have a name)
  15. ExecReload=-/usr/bin/docker stop "proxy-puppet-1"
  16. ExecReload=-/usr/bin/docker rm "proxy-puppet-1"
  17. ExecStop=-/usr/bin/docker stop "proxy-puppet-1"
  18. [Install]
  19. WantedBy=container.target
  20. # Container information
  21. X-ContainerId=proxy-puppet-1
  22. X-ContainerImage=docker-registry.ops.rhcloud.com/oso-v2-puppet:{{ oo_env }}
  23. X-ContainerUserId=
  24. X-ContainerRequestId=Ky0lhw0onwoSDJR4GK6t3g
  25. X-ContainerType=simple