Update after configure install source
This commit is contained in:
parent
8ec6503edd
commit
cf55912323
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user