diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-04-24 15:29:41 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-04-24 18:06:18 +0100 |
commit | ed3db26045041c2e5f25f7a60154740bd93cbd48 (patch) | |
tree | c278d32ceb54f555286c6c57b86e15b4ca251f7f /openstack/usr/lib/systemd/system/postgres-server-setup.service | |
parent | 0f89f20d72ee11de35ad6c4471a1ce3071c57ad4 (diff) | |
download | definitions-ed3db26045041c2e5f25f7a60154740bd93cbd48.tar.gz |
Move postgres-server configuration out of keystone-setup
Otherwise postgres-server and keystone-setup services will initially
fail, as keystone-setup needs a postgres-server running to succeed, but
the postgres-server can only run after some configuration, which was
previously being done by keystone-setup.
Change-Id: I2d649d494cb54119e3b9bd3d9f6deb46bfb2dd12
Diffstat (limited to 'openstack/usr/lib/systemd/system/postgres-server-setup.service')
-rw-r--r-- | openstack/usr/lib/systemd/system/postgres-server-setup.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openstack/usr/lib/systemd/system/postgres-server-setup.service b/openstack/usr/lib/systemd/system/postgres-server-setup.service new file mode 100644 index 00000000..5bb70eb7 --- /dev/null +++ b/openstack/usr/lib/systemd/system/postgres-server-setup.service @@ -0,0 +1,10 @@ +[Unit] +Description=Run postgres-setup Ansible scripts +After=local-fs.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/ansible-playbook -v -i /usr/share/openstack/hosts /usr/share/openstack/postgres.yml + +[Install] +WantedBy=multi-user.target |