Merge lp:~louis/charms/precise/cinder/cinder-add-user-flags into lp:charms/raring/cinder

Proposed by Louis Bouchard
Status: Merged
Merged at revision: 28
Proposed branch: lp:~louis/charms/precise/cinder/cinder-add-user-flags
Merge into: lp:charms/raring/cinder
Diff against target: 47 lines (+13/-2)
4 files modified
config.yaml (+3/-0)
hooks/cinder_utils.py (+1/-0)
revision (+1/-1)
templates/cinder.conf (+8/-1)
To merge this branch: bzr merge lp:~louis/charms/precise/cinder/cinder-add-user-flags
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+201062@code.launchpad.net

Description of the change

Implements config-flags in the cinder charm as done in the nova-compute charm

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2013-10-22 23:11:16 +0000
+++ config.yaml 2014-01-09 18:10:42 +0000
@@ -115,3 +115,6 @@
115 ssl_key:115 ssl_key:
116 type: string116 type: string
117 description: SSL key to use with certificate specified as ssl_cert.117 description: SSL key to use with certificate specified as ssl_cert.
118 config-flags:
119 type: string
120 description: Comma separated list of key=value config flags to be set in cinder.conf.
118121
=== modified file 'hooks/cinder_utils.py'
--- hooks/cinder_utils.py 2013-10-17 21:48:08 +0000
+++ hooks/cinder_utils.py 2014-01-09 18:10:42 +0000
@@ -100,6 +100,7 @@
100 'hook_contexts': [context.SharedDBContext(),100 'hook_contexts': [context.SharedDBContext(),
101 context.AMQPContext(),101 context.AMQPContext(),
102 context.ImageServiceContext(),102 context.ImageServiceContext(),
103 context.OSConfigFlagContext(),
103 cinder_contexts.CephContext(),104 cinder_contexts.CephContext(),
104 cinder_contexts.HAProxyContext(),105 cinder_contexts.HAProxyContext(),
105 cinder_contexts.ImageServiceContext()],106 cinder_contexts.ImageServiceContext()],
106107
=== modified file 'revision'
--- revision 2013-10-17 21:48:08 +0000
+++ revision 2014-01-09 18:10:42 +0000
@@ -1,1 +1,1 @@
11291133
22
=== modified file 'templates/cinder.conf'
--- templates/cinder.conf 2013-10-22 23:11:16 +0000
+++ templates/cinder.conf 2014-01-09 18:10:42 +0000
@@ -41,4 +41,11 @@
41{% endif -%}41{% endif -%}
42{% if glance_api_version -%}42{% if glance_api_version -%}
43glance_api_version = {{ glance_api_version }}43glance_api_version = {{ glance_api_version }}
44{% endif -%}
45\ No newline at end of file44\ No newline at end of file
45{% endif -%}
46
47{% if user_config_flags -%}
48{% for key, value in user_config_flags.iteritems() -%}
49{{ key }} = {{ value }}
50{% endfor -%}
51{% endif -%}
52

Subscribers

People subscribed via source and target branches