2017-06-20 14:41:01 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Openstack Glance Container
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=always
|
2017-07-12 10:24:46 +02:00
|
|
|
ExecStartPre=-/usr/bin/docker rm -f %n
|
2017-06-20 14:41:01 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
2017-07-12 10:19:45 +02:00
|
|
|
-e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}" \
|
|
|
|
-e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}" \
|
|
|
|
-e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}" \
|
|
|
|
-e "MYSQL_ROOT_PASSWORD=geheim" \
|
|
|
|
-e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
|
2017-07-12 16:32:58 +02:00
|
|
|
-e "GLANCE_HOST={{ hostvars[groups['glance-controller'][0]]['ansible_default_ipv4']['address'] }}" \
|
2017-07-12 10:19:45 +02:00
|
|
|
-e "GLANCE_USER=glance" \
|
|
|
|
-e "GLANCE_PASSWORD=geheim" \
|
2017-06-20 14:41:01 +02:00
|
|
|
-p 9292:9292 \
|
|
|
|
hpc/openstack-glance
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|