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 \
|
2017-07-14 10:02:55 +02:00
|
|
|
-e "MEMCACHED_SERVER={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}" \
|
|
|
|
-e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
|
|
|
|
--add-host=nova-controller:{{ hostvars[groups['nova-controller'][0]]['ansible_default_ipv4']['address'] }} \
|
|
|
|
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }} \
|
2017-08-01 10:19:54 +02:00
|
|
|
--add-host=neutron-controller:{{ hostvars[groups['neutron-controller'][0]]['ansible_default_ipv4']['address'] }} \
|
2017-07-05 09:03:45 +02:00
|
|
|
-p 80:80 \
|
2017-08-01 10:19:54 +02:00
|
|
|
{{ docker_image }}
|
2017-07-05 09:03:45 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|