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
This commit is contained in:
17
roles/glance/templates/glance.service
Normal file
17
roles/glance/templates/glance.service
Normal file
@ -0,0 +1,17 @@
|
||||
[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
|
Reference in New Issue
Block a user