~nwingfield/charms/trusty/ceilometer/exercise

« back to all changes in this revision

Viewing changes to hooks/ceilometer_contexts.py

  • Committer: Edward Hope-Morley
  • Date: 2015-03-13 12:57:45 UTC
  • mfrom: (67.2.11 ceilometer.pki)
  • Revision ID: edward.hope-morley@canonical.com-20150313125745-7e9jf5egpi14c9cg
[hopem,r=gnuoy]

Implement PKI token signing.

Closes-Bug: 1309667

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        specific to this charm.
105
105
        '''
106
106
        haproxy_port = CEILOMETER_PORT
107
 
        api_port = determine_api_port(CEILOMETER_PORT)
108
 
        apache_port = determine_apache_port(CEILOMETER_PORT)
 
107
        api_port = determine_api_port(CEILOMETER_PORT, singlenode_mode=True)
 
108
        apache_port = determine_apache_port(CEILOMETER_PORT,
 
109
                                            singlenode_mode=True)
109
110
 
110
111
        ctxt = {
111
112
            'service_ports': {'ceilometer_api': [haproxy_port, apache_port]},
116
117
 
117
118
class ApacheSSLContext(SSLContext):
118
119
 
 
120
    external_ports = [CEILOMETER_PORT]
119
121
    service_namespace = "ceilometer"
120
 
 
121
 
    external_ports = [CEILOMETER_PORT+100]