2017-07-05 09:03:45 +02:00
|
|
|
[Unit]
|
2018-02-05 16:29:12 +01:00
|
|
|
Description=Openstack Horizon Container
|
2017-07-05 09:03:45 +02:00
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=always
|
2017-08-14 16:40:06 +02:00
|
|
|
ExecStartPre=-/usr/bin/docker kill %n
|
|
|
|
ExecStartPre=-/usr/bin/docker rm %n
|
2017-07-05 09:03:45 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
2017-08-31 15:02:47 +02:00
|
|
|
-e "MEMCACHED_SERVER={{ hostvars[groups['memcached'][0]]['listen_ip'] | default(hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address']) }}" \
|
2018-08-16 16:27:45 +02:00
|
|
|
-e "KEYSTONE_HOST={{ keystone_external_fqdn | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }}" \
|
|
|
|
--volume=/srv/horizon/certs:/certs \
|
2017-08-31 15:02:47 +02:00
|
|
|
--add-host=keystone:{{ hostvars[groups['keystone'][0]]['listen_ip'] | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }} \
|
2017-07-05 09:03:45 +02:00
|
|
|
-p 80:80 \
|
2018-08-16 16:27:45 +02:00
|
|
|
-p 443:443 \
|
2017-08-01 10:19:54 +02:00
|
|
|
{{ docker_image }}
|
2017-07-05 09:03:45 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|