diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-03-26 18:27:25 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-03-31 12:55:57 +0000 |
commit | 8811234dad5261dfb88ffecdb30c1f2ebf677268 (patch) | |
tree | e2b4ab3e633a831b387a477932163e13ec9ef25a /openstack/etc/systemd | |
parent | 286a31ef2f4c3d6f9b318995578f05ca1c67246d (diff) | |
download | definitions-8811234dad5261dfb88ffecdb30c1f2ebf677268.tar.gz |
keystone: Move setup scripts to Ansible.
Now keystone-setup also configures postgres and rabbitmq. This can be
split in different setup scripts, but I think that rabbitmq, postgres,
are likely to be in the controller node.
Diffstat (limited to 'openstack/etc/systemd')
-rw-r--r-- | openstack/etc/systemd/system/openstack-keystone-setup.service | 7 |
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 |