Browse code

Merge "Configure sahara to work with other secured services"

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