added modifications in nova config file

This commit is contained in:
yolanda.robla@canonical.com 2013-04-05 15:46:02 +02:00
parent b23db35bbb
commit 5da4882bc9
3 changed files with 8 additions and 2 deletions

View File

@ -54,8 +54,12 @@ def modify_config_file(nova_conf, values):
with open(nova_conf, "w") as f:
config.write(f)
f.close()
# add line at the end, it's a dupe and configparser doesn't handle it
with open(nova_conf, "a") as f:
f.write("notification_driver=nova.openstack.common.notifier.rabbit_notifier\n")
except IOError as e:
juju_log('ERROR', 'Error updating nova config file')
sys.exit(1)

View File

@ -10,6 +10,8 @@ import ceilometer_utils
def install():
utils.configure_source()
utils.install(*ceilometer_utils.CEILOMETER_AGENT_PACKAGES)
ceilometer_utils.modify_config_file(ceilometer_utils.NOVA_CONF,
ceilometer_utils.NOVA_SETTINGS)
port = ceilometer_utils.CEILOMETER_PORT
utils.expose(port)

View File

@ -1 +1 @@
17
18