From 95053cf4d0465bcb9ba6a0fb56080bba2c4e4b1a Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Fri, 16 May 2014 16:27:41 +0800 Subject: [PATCH] Add new configuration files for ceilometer According to patch: https://review.openstack.org/#/c/77957/, and patch: https://review.openstack.org/#/c/42713/15, new configuration files named api_paste.ini and event_definitions.yaml are introduced, this patch adds them to ceilometer configuration directory. Change-Id: I57165d588da35f13b2d22629b48dc087502598a7 --- lib/ceilometer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ceilometer b/lib/ceilometer index 59f572c016..a4be7af480 100644 --- a/lib/ceilometer +++ b/lib/ceilometer @@ -147,9 +147,12 @@ function configure_ceilometer { # Install the policy file for the API server cp $CEILOMETER_DIR/etc/ceilometer/policy.json $CEILOMETER_CONF_DIR - cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR iniset $CEILOMETER_CONF DEFAULT policy_file $CEILOMETER_CONF_DIR/policy.json + cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR + cp $CEILOMETER_DIR/etc/ceilometer/api_paste.ini $CEILOMETER_CONF_DIR + cp $CEILOMETER_DIR/etc/ceilometer/event_definitions.yaml $CEILOMETER_CONF_DIR + if [ "$CEILOMETER_PIPELINE_INTERVAL" ]; then sed -i "s/interval:.*/interval: ${CEILOMETER_PIPELINE_INTERVAL}/" $CEILOMETER_CONF_DIR/pipeline.yaml fi