Update after configure install source

This commit is contained in:
James Page 2013-10-14 16:00:20 +01:00
parent 8ec6503edd
commit cf55912323

View File

@ -5,6 +5,7 @@ import sys
#import lib.utils as utils #import lib.utils as utils
from charmhelpers.fetch import ( from charmhelpers.fetch import (
apt_install, filter_installed_packages, apt_install, filter_installed_packages,
apt_update
) )
from charmhelpers.core.hookenv import ( from charmhelpers.core.hookenv import (
open_port, open_port,
@ -43,6 +44,7 @@ hooks = Hooks()
@hooks.hook() @hooks.hook()
def install(): def install():
configure_installation_source(config('openstack-origin')) configure_installation_source(config('openstack-origin'))
apt_update(fatal=True)
apt_install(filter_installed_packages(CEILOMETER_PACKAGES), apt_install(filter_installed_packages(CEILOMETER_PACKAGES),
fatal=True) fatal=True)
open_port(CEILOMETER_PORT) open_port(CEILOMETER_PORT)