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-07-12 10:19:45 +02:00
|
|
|
ExecStartPre=-/usr/bin/docker rm -f %n
|
2017-05-11 16:47:03 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
2017-07-24 12:17:50 +02:00
|
|
|
--add-host=mariadb:{{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }} \
|
|
|
|
-e "KEYSTONE_HOST={{ 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-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
|