Cinder storage role
This commit is contained in:
20
roles/cinder-storage/templates/cinder-storage.service
Normal file
20
roles/cinder-storage/templates/cinder-storage.service
Normal file
@ -0,0 +1,20 @@
|
||||
[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 \
|
||||
--privileged \
|
||||
{{ env_vars | replace('\n', '') }} \
|
||||
-v /srv/cinder-storage/root:/root \
|
||||
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
|
||||
-p 8776:8776 \
|
||||
{{ docker_image }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user