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
|
|
|
|
ExecStartPre=-/usr/bin/docker stop %n
|
|
|
|
ExecStartPre=-/usr/bin/docker rm %n
|
2017-05-11 16:47:03 +02:00
|
|
|
ExecStart=/usr/bin/docker run --name %n \
|
|
|
|
--add-host=mariadb:{{ hostvars[groups['databases'][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 \
|
|
|
|
hpc/keystone
|
|
|
|
|
2017-04-25 14:47:04 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|