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-07 10:07:24 +0000
commit8fd703c20bbb553725e698b9ccbf57b1fff6f333 (patch)
tree9875c4f4cc239557684cd37402d4b3efd0852eee /openstack-keystone.configure
parent5b8bd945cb1171e89cc9313b4c13b470ee00548d (diff)
downloaddefinitions-8fd703c20bbb553725e698b9ccbf57b1fff6f333.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