Added installation of openstack horizon.

The image needs to be available on the target host. It can be built from:
ssh://git@git.webhosting.rug.nl:222/HPC/docker-horizon.git
This commit is contained in:
Egon Rijpkema
2017-07-05 09:03:45 +02:00
parent 9072279aa7
commit cebd9b7a9c
5 changed files with 49 additions and 522 deletions

View File

@ -0,0 +1,18 @@
[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 \
-e "MEMCACHED_SERVER={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
-e "OPENSTACK_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
-p 80:80 \
hpc/horizon
[Install]
WantedBy=multi-user.target