summaryrefslogtreecommitdiff
path: root/openstack/etc/systemd/system
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-18 16:40:04 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-03-16 17:30:38 +0000
commita90c7414cd5b7697c07d8f2c60a796064ebd7f28 (patch)
tree192976e8de638f103f1f55fe5b7b1508ee7fd175 /openstack/etc/systemd/system
parent68615e3afbdf6b5ccf886161d7706616d8805371 (diff)
downloaddefinitions-a90c7414cd5b7697c07d8f2c60a796064ebd7f28.tar.gz
Keystone configuration to ansible
Diffstat (limited to 'openstack/etc/systemd/system')
-rw-r--r--openstack/etc/systemd/system/openstack-keystone-setup.service7
1 files changed, 4 insertions, 3 deletions
diff --git a/openstack/etc/systemd/system/openstack-keystone-setup.service b/openstack/etc/systemd/system/openstack-keystone-setup.service
index fb2793bb..9ea04c1d 100644
--- a/openstack/etc/systemd/system/openstack-keystone-setup.service
+++ b/openstack/etc/systemd/system/openstack-keystone-setup.service
@@ -1,11 +1,12 @@
[Unit]
-Description=Run openstack-keystone-setup (once)
+Description=Run keystone-setup Ansible scripts
After=local-fs.target postgres-server.service
+ConditionPathExists=/etc/openstack/keystone.conf
[Service]
+# Oneshot, since others setup have to wait until this service finishes
Type=oneshot
-ExecStart=/usr/share/openstack/openstack-keystone-setup
-Restart=no
+ExecStart=/usr/bin/ansible-playbook -v -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/keystone.yml
[Install]
WantedBy=multi-user.target