hpc-cloud/roles/glance-controller/templates/glance.service

20 lines
434 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Openstack Glance Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker kill %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --name %n \
2017-07-31 13:21:03 +02:00
{{ env_vars | replace('\n', '') }} \
-v /srv/glance/root:/root \
2018-04-13 16:19:17 +02:00
-v /srv/glance/etc/ceph:/etc/ceph \
-p 9292:9292 \
2017-07-31 13:21:03 +02:00
{{ docker_image }}
[Install]
WantedBy=multi-user.target