~celebdor/charms/trusty/neutron-agents-midonet/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Antoni Segura Puimedon
  • Date: 2016-01-25 15:57:58 UTC
  • Revision ID: toni@midokura.com-20160125155758-ni7pxb7vryhgckpj
Sync dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from charmhelpers.contrib.openstack import utils
21
21
from charmhelpers.core import hookenv
22
22
from charmhelpers import fetch  # noqa
23
 
try:
24
 
    from midonet_helpers import puppet
25
 
except ImportError:
26
 
    fetch.apt_install(['python-jinja2', 'python-yaml'], fatal=True)
27
 
    from midonet_helpers import puppet
 
23
from midonet_helpers import puppet
28
24
 
29
25
 
30
26
def _configure_sysctl():
45
41
    puppet.module_install('midonet-midonet')
46
42
    hookenv.status_set('maintenance', 'Installing packages')
47
43
    fetch.apt_update()
48
 
    fetch.apt_install(['nova-api-metadata',
49
 
                       'neutron-dhcp-agent',
 
44
    fetch.apt_install(['neutron-dhcp-agent',
50
45
                       'neutron-metadata-agent',
51
46
                       'python-augeas',
52
47
                       'python-jinja2'], fatal=True)