2017-04-25 14:47:04 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Openstack Keystone Container
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
2017-05-11 16:47:03 +02:00
|
|
|
|
2017-04-25 14:47:04 +02:00
|
|
|
[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-05-11 16:47:03 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
2017-08-31 15:02:47 +02:00
|
|
|
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['listen_ip'] | default(hostvars[groups['databases'][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']) }}" \
|
2017-06-14 15:08:49 +02:00
|
|
|
-p 5000:5000 -p 35357:35357 \
|
2017-05-11 16:47:03 +02:00
|
|
|
-v /srv/keystone/fernet-keys:/etc/keystone/fernet-keys \
|
2017-08-14 16:40:06 +02:00
|
|
|
-v /srv/keystone/root:/root \
|
2018-08-16 16:27:45 +02:00
|
|
|
-v /srv/keystone/certs:/certs \
|
|
|
|
-v /srv/keystone/shibboleth/sp-key.pem:/etc/shibboleth/sp-key.pem \
|
|
|
|
-v /srv/keystone/shibboleth/sp-cert.pem:/etc/shibboleth/sp-cert.pem \
|
2017-08-01 10:19:54 +02:00
|
|
|
{{ docker_image }}
|
2017-05-11 16:47:03 +02:00
|
|
|
|
2017-04-25 14:47:04 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|