~plumgrid-team/charms/trusty/plumgrid-director/trunk

« back to all changes in this revision

Viewing changes to hooks/pg_dir_hooks.py

  • Committer: bbaqar at plumgrid
  • Date: 2016-05-28 22:23:18 UTC
  • mfrom: (29.1.8 plumgrid-director)
  • Revision ID: bbaqar@plumgrid.com-20160528222318-0fgsim7dx9wbnllr
5.1 changes
- configure-pg-sources added
- updated templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    fabric_interface_changed,
41
41
    load_iptables,
42
42
    restart_on_change,
43
 
    director_cluster_ready
 
43
    director_cluster_ready,
 
44
    configure_pg_sources
44
45
)
45
46
 
46
47
hooks = Hooks()
135
136
            charm_config.changed('iovisor-build')):
136
137
        status_set('maintenance', 'Upgrading apt packages')
137
138
        stop_pg()
 
139
        if charm_config.changed('install_sources'):
 
140
            configure_pg_sources()
138
141
        configure_sources(update=True)
139
142
        pkgs = determine_packages()
140
143
        for pkg in pkgs: