~gnuoy/charms/trusty/neutron-api/pass-keystone-auth

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/amulet/deployment.py

  • Committer: Liam Young
  • Date: 2015-02-26 10:47:30 UTC
  • mfrom: (80.1.1 neutron-api)
  • Revision ID: liam.young@canonical.com-20150226104730-0m30i1fxo227nqep
[bradm, r=gnuoy] Add haproxy nrpe checks and setting of nagios_servicegroups

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        services.append(this_service)
72
72
        use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph',
73
73
                      'ceph-osd', 'ceph-radosgw']
 
74
        # Openstack subordinate charms do not expose an origin option as that
 
75
        # is controlled by the principle
 
76
        ignore = ['neutron-openvswitch']
74
77
 
75
78
        if self.openstack:
76
79
            for svc in services:
77
 
                if svc['name'] not in use_source:
 
80
                if svc['name'] not in use_source + ignore:
78
81
                    config = {'openstack-origin': self.openstack}
79
82
                    self.d.configure(svc['name'], config)
80
83
 
81
84
        if self.source:
82
85
            for svc in services:
83
 
                if svc['name'] in use_source:
 
86
                if svc['name'] in use_source and svc['name'] not in ignore:
84
87
                    config = {'source': self.source}
85
88
                    self.d.configure(svc['name'], config)
86
89