Browse code

Set policy_file in the oslo_policy group

policy_file in DEFAULT is deprecated

Change-Id: I6698a810d5e6c395a18aed8066e61f8c4bae2408

Chris Dent authored on 2015/04/23 03:02:39
Showing 3 changed files
... ...
@@ -195,7 +195,7 @@ function configure_ceilometer {
195 195
 
196 196
     # Install the policy file for the API server
197 197
     cp $CEILOMETER_DIR/etc/ceilometer/policy.json $CEILOMETER_CONF_DIR
198
-    iniset $CEILOMETER_CONF DEFAULT policy_file $CEILOMETER_CONF_DIR/policy.json
198
+    iniset $CEILOMETER_CONF oslo_policy policy_file $CEILOMETER_CONF_DIR/policy.json
199 199
 
200 200
     cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR
201 201
     cp $CEILOMETER_DIR/etc/ceilometer/event_pipeline.yaml $CEILOMETER_CONF_DIR
... ...
@@ -296,7 +296,7 @@ function configure_ironic {
296 296
 # API specific configuration.
297 297
 function configure_ironic_api {
298 298
     iniset $IRONIC_CONF_FILE DEFAULT auth_strategy keystone
299
-    iniset $IRONIC_CONF_FILE DEFAULT policy_file $IRONIC_POLICY_JSON
299
+    iniset $IRONIC_CONF_FILE oslo_policy policy_file $IRONIC_POLICY_JSON
300 300
 
301 301
     # TODO(Yuki Nishiwaki): This is a temporary work-around until Ironic is fixed(bug#1422632).
302 302
     # These codes need to be changed to use the function of configure_auth_token_middleware
... ...
@@ -1081,7 +1081,7 @@ function _configure_neutron_service {
1081 1081
 
1082 1082
     iniset $NEUTRON_CONF DEFAULT verbose True
1083 1083
     iniset $NEUTRON_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
1084
-    iniset $NEUTRON_CONF DEFAULT policy_file $Q_POLICY_FILE
1084
+    iniset $NEUTRON_CONF oslo_policy policy_file $Q_POLICY_FILE
1085 1085
     iniset $NEUTRON_CONF DEFAULT allow_overlapping_ips $Q_ALLOW_OVERLAPPING_IP
1086 1086
 
1087 1087
     iniset $NEUTRON_CONF DEFAULT auth_strategy $Q_AUTH_STRATEGY