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