hpc-cloud/roles/glance/templates/glance.service
Egon Rijpkema 0f10a61ae8 Added a glance role
This role builds and installs a docker image from

ssh://git@git.webhosting.rug.nl:222/P<t_CO>174/docker-glance.git
2017-06-20 14:41:01 +02:00

18 lines
426 B
Desktop File

[Unit]
Description=Openstack Glance Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --name %n \
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }} \
-p 9292:9292 \
hpc/openstack-glance
[Install]
WantedBy=multi-user.target