2017-08-28 11:52:02 +02:00
|
|
|
[Unit]
|
2017-08-31 15:02:47 +02:00
|
|
|
Description=Openstack Cinder Storage container
|
2017-08-28 11:52:02 +02:00
|
|
|
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 \
|
|
|
|
--privileged \
|
|
|
|
{{ env_vars | replace('\n', '') }} \
|
|
|
|
-v /srv/cinder-storage/root:/root \
|
2018-12-14 16:16:50 +01:00
|
|
|
-v "/dev":/dev \
|
2018-12-18 11:08:04 +01:00
|
|
|
-v "/var/lib/cinder:/var/lib/cinder" \
|
2018-12-10 17:24:43 +01:00
|
|
|
--network=host \
|
2017-08-28 11:52:02 +02:00
|
|
|
{{ docker_image }}
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|