diff options
author | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2017-05-30 21:59:16 +0200 |
---|---|---|
committer | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2017-05-30 22:09:59 +0200 |
commit | b5eac4316187366b4e483fc532cdc07ac189e984 (patch) | |
tree | 194d2338e6f9c496f7c22106a80d11d9521f013e | |
parent | 1a86e4fbb458db3b2ebf2889b7ee3f655cba1231 (diff) | |
download | osprofiler-1.9.1.tar.gz |
devstack: use project conf file env variables1.9.1
OpenStack project configuration files may be stored elsewhere not in the
default /etc directory or with a different filename. Better relying on
existing environment variables set by each project devstack plugin.
Change-Id: I253739c765b469901d0bc6e0c82922645fb92545
-rw-r--r-- | devstack/lib/osprofiler | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/devstack/lib/osprofiler b/devstack/lib/osprofiler index 3435c70..f965598 100644 --- a/devstack/lib/osprofiler +++ b/devstack/lib/osprofiler @@ -21,20 +21,20 @@ set +o xtrace # -------- CONF_FILES=( - /etc/cinder/cinder.conf - /etc/heat/heat.conf - /etc/keystone/keystone.conf - /etc/nova/nova.conf - /etc/neutron/neutron.conf - /etc/glance/glance-api.conf - /etc/glance/glance-registry.conf - /etc/trove/trove.conf - /etc/trove/trove-conductor.conf - /etc/trove/trove-guestagent.conf - /etc/trove/trove-taskmanager.conf - /etc/senlin/senlin.conf - /etc/magnum/magnum.conf - /etc/zun/zun.conf + $CINDER_CONF + $HEAT_CONF + $KEYSTONE_CONF + $NOVA_CONF + $NEUTRON_CONF + $GLANCE_API_CONF + $GLANCE_REGISTRY_CONF + $TROVE_CONF + $TROVE_CONDUCTOR_CONF + $TROVE_GUESTAGENT_CONF + $TROVE_TASKMANAGER_CONF + $SENLIN_CONF + $MAGNUM_CONF + $ZUN_CONF ) # This will update CEILOMETER_NOTIFICATION_TOPICS in ceilometer.conf file @@ -55,8 +55,10 @@ function configure_osprofiler() { iniset $conf profiler hmac_keys $OSPROFILER_HMAC_KEYS fi done - CEILOMETER_CONF=/etc/ceilometer/ceilometer.conf - iniset $CEILOMETER_CONF event store_raw info + if [ -f $CEILOMETER_CONF ] + then + iniset $CEILOMETER_CONF event store_raw info + fi } |