~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to hooks/neutron_api_utils.py

  • Committer: James Page
  • Date: 2015-01-13 14:43:04 UTC
  • mfrom: (71 trunk)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: james.page@ubuntu.com-20150113144304-yqhknhbuhyfzsd7g
Rebase on next

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        'services': ['apache2'],
90
90
    }),
91
91
    (HAPROXY_CONF, {
92
 
        'contexts': [context.HAProxyContext(),
 
92
        'contexts': [context.HAProxyContext(singlenode_mode=True),
93
93
                     neutron_api_context.HAProxyContext()],
94
94
        'services': ['haproxy'],
95
95
    }),
172
172
                        if v['services']])
173
173
 
174
174
 
 
175
def services():
 
176
    ''' Returns a list of services associate with this charm '''
 
177
    _services = []
 
178
    for v in restart_map().values():
 
179
        _services = _services + v
 
180
    return list(set(_services))
 
181
 
 
182
 
175
183
def keystone_ca_cert_b64():
176
184
    '''Returns the local Keystone-provided CA cert if it exists, or None.'''
177
185
    if not os.path.isfile(CA_CERT_PATH):