hpc-cloud/roles/cinder-storage/templates/cinder-storage.service

21 lines
486 B
SYSTEMD
Raw Normal View History

2017-08-28 11:52:02 +02:00
[Unit]
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 \
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
-p 8777:8776 \
2017-08-28 11:52:02 +02:00
{{ docker_image }}
[Install]
WantedBy=multi-user.target