summaryrefslogtreecommitdiff
path: root/openstack-keystone.configure
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-04-27 15:31:58 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-05-01 14:13:54 +0000
commit557d9df5b2ecd143a433004b89effcdc307bfbbb (patch)
treec3ac46c61b4f20cd0477cd3cbdf06297ff82a495 /openstack-keystone.configure
parent1ac967cf3647297d52644b1ae39bc0b451ec4f83 (diff)
downloaddefinitions-557d9df5b2ecd143a433004b89effcdc307bfbbb.tar.gz
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
Diffstat (limited to 'openstack-keystone.configure')
-rw-r--r--openstack-keystone.configure10
1 files changed, 10 insertions, 0 deletions
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