2017-07-05 09:03:45 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Openstack Glance Container
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=always
|
2017-07-12 16:32:58 +02:00
|
|
|
ExecStartPre=-/usr/bin/docker rm -f %n
|
2017-07-05 09:03:45 +02:00
|
|
|
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
|