~nwingfield/charms/trusty/ceilometer/exercise

« back to all changes in this revision

Viewing changes to hooks/ceilometer_utils.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:
65
65
]
66
66
 
67
67
CEILOMETER_ROLE = "ResellerAdmin"
68
 
 
 
68
SVC = 'ceilometer'
69
69
 
70
70
CONFIG_FILES = OrderedDict([
71
71
    (CEILOMETER_CONF, {
72
 
        'hook_contexts': [context.IdentityServiceContext(),
 
72
        'hook_contexts': [context.IdentityServiceContext(service=SVC,
 
73
                                                         service_user=SVC),
73
74
                          context.AMQPContext(ssl_dir=CEILOMETER_CONF_DIR),
74
75
                          LoggingConfigContext(),
75
76
                          MongoDBContext(),
79
80
        'services': CEILOMETER_SERVICES
80
81
    }),
81
82
    (HAPROXY_CONF, {
82
 
        'hook_contexts': [context.HAProxyContext(),
 
83
        'hook_contexts': [context.HAProxyContext(singlenode_mode=True),
83
84
                          HAProxyContext()],
84
85
        'services': ['haproxy'],
85
86
    }),