Browse code

Configure sahara to work with other secured services

Registering SSL parameters in sahara.conf for all openstack
services.

Change-Id: I63dd8a0f6e7b37cfd8140d2783af04505f29285f
Closes-Bug: #1419195

Andrew Lazarev authored on 2015/02/07 09:16:01
Showing 1 changed files
... ...
@@ -128,6 +128,10 @@ function configure_sahara {
128 128
     if is_service_enabled neutron; then
129 129
         iniset $SAHARA_CONF_FILE DEFAULT use_neutron true
130 130
         iniset $SAHARA_CONF_FILE DEFAULT use_floating_ips true
131
+
132
+        if is_ssl_enabled_service "neutron" || is_service_enabled tls-proxy; then
133
+            iniset $SAHARA_CONF_FILE neutron ca_file $SSL_BUNDLE_FILE
134
+        fi
131 135
     else
132 136
         iniset $SAHARA_CONF_FILE DEFAULT use_neutron false
133 137
         iniset $SAHARA_CONF_FILE DEFAULT use_floating_ips false
... ...
@@ -135,10 +139,30 @@ function configure_sahara {
135 135
 
136 136
     if is_service_enabled heat; then
137 137
         iniset $SAHARA_CONF_FILE DEFAULT infrastructure_engine heat
138
+
139
+        if is_ssl_enabled_service "heat" || is_service_enabled tls-proxy; then
140
+            iniset $SAHARA_CONF_FILE heat ca_file $SSL_BUNDLE_FILE
141
+        fi
138 142
     else
139 143
         iniset $SAHARA_CONF_FILE DEFAULT infrastructure_engine direct
140 144
     fi
141 145
 
146
+    if is_ssl_enabled_service "cinder" || is_service_enabled tls-proxy; then
147
+        iniset $SAHARA_CONF_FILE cinder ca_file $SSL_BUNDLE_FILE
148
+    fi
149
+
150
+    if is_ssl_enabled_service "nova" || is_service_enabled tls-proxy; then
151
+        iniset $SAHARA_CONF_FILE nova ca_file $SSL_BUNDLE_FILE
152
+    fi
153
+
154
+    if is_ssl_enabled_service "swift" || is_service_enabled tls-proxy; then
155
+        iniset $SAHARA_CONF_FILE swift ca_file $SSL_BUNDLE_FILE
156
+    fi
157
+
158
+    if is_ssl_enabled_service "key" || is_service_enabled tls-proxy; then
159
+        iniset $SAHARA_CONF_FILE keystone ca_file $SSL_BUNDLE_FILE
160
+    fi
161
+
142 162
     iniset $SAHARA_CONF_FILE DEFAULT use_syslog $SYSLOG
143 163
 
144 164
     # Format logging