From cf991b0e46cdc7f81895e4f14106d1d4071c9a4e Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 27 Apr 2015 15:31:58 +0000 Subject: openstack: add missing ConditionPathExists And fix some existing as well. Generate a separate postgres.conf file so that we don't have to reference keystone on the postgres setup systemd unit and Ansible script. Change-Id: I0bb4428b7e88a508a37d1d43ddcd266369b05cd2 --- openstack-keystone.configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openstack-keystone.configure') diff --git a/openstack-keystone.configure b/openstack-keystone.configure index 2a3cc0f7..6b011b14 100644 --- a/openstack-keystone.configure +++ b/openstack-keystone.configure @@ -111,3 +111,13 @@ keystone_configuration={ yaml.dump(keystone_configuration, sys.stdout, default_flow_style=False) EOF + +python << 'EOF' > "$OPENSTACK_DATA/postgres.conf" +import os, sys, yaml + +postgres_configuration={ + 'MANAGEMENT_INTERFACE_IP_ADDRESS': os.environ['MANAGEMENT_INTERFACE_IP_ADDRESS'], +} + +yaml.dump(postgres_configuration, sys.stdout, default_flow_style=False) +EOF -- cgit v1.2.1