Merge lp:~james-page/charm-helpers/openstack-snippets into lp:charm-helpers

Proposed by James Page on 2015-03-25
Status: Merged
Merged at revision: 342
Proposed branch: lp:~james-page/charm-helpers/openstack-snippets
Merge into: lp:charm-helpers
Diff against target: 41 lines (+32/-0)
2 files modified
charmhelpers/contrib/openstack/templates/section-keystone-authtoken (+9/-0)
charmhelpers/contrib/openstack/templates/section-rabbitmq-oslo (+23/-0)
To merge this branch: bzr merge lp:~james-page/charm-helpers/openstack-snippets
Reviewer Review Type Date Requested Status
Liam Young 2015-03-25 Approve on 2015-03-25
Review via email: mp+254057@code.launchpad.net

Description of the Change

A few new snippets to help rationalize openstack charm templates

To post a comment you must log in.
Liam Young (gnuoy) wrote :

Approve

review: Approve
343. By James Page on 2015-03-25

Tidy

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'charmhelpers/contrib/openstack/templates/section-keystone-authtoken'
2--- charmhelpers/contrib/openstack/templates/section-keystone-authtoken 1970-01-01 00:00:00 +0000
3+++ charmhelpers/contrib/openstack/templates/section-keystone-authtoken 2015-03-25 09:13:20 +0000
4@@ -0,0 +1,9 @@
5+{% if auth_host -%}
6+[keystone_authtoken]
7+identity_uri = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/{{ auth_admin_prefix }}
8+auth_uri = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/{{ service_admin_prefix }}
9+admin_tenant_name = {{ admin_tenant_name }}
10+admin_user = {{ admin_user }}
11+admin_password = {{ admin_password }}
12+signing_dir = {{ signing_dir }}
13+{% endif -%}
14
15=== added file 'charmhelpers/contrib/openstack/templates/section-rabbitmq-oslo'
16--- charmhelpers/contrib/openstack/templates/section-rabbitmq-oslo 1970-01-01 00:00:00 +0000
17+++ charmhelpers/contrib/openstack/templates/section-rabbitmq-oslo 2015-03-25 09:13:20 +0000
18@@ -0,0 +1,23 @@
19+{% if rabbitmq_host or rabbitmq_hosts -%}
20+[oslo_messaging_rabbit]
21+rabbit_userid = {{ rabbitmq_user }}
22+rabbit_virtual_host = {{ rabbitmq_virtual_host }}
23+rabbit_password = {{ rabbitmq_password }}
24+{% if rabbitmq_hosts -%}
25+rabbit_hosts = {{ rabbitmq_hosts }}
26+{% if rabbitmq_ha_queues -%}
27+rabbit_ha_queues = True
28+rabbit_durable_queues = False
29+{% endif -%}
30+{% else -%}
31+rabbit_host = {{ rabbitmq_host }}
32+{% endif -%}
33+{% if rabbit_ssl_port -%}
34+rabbit_use_ssl = True
35+rabbit_port = {{ rabbit_ssl_port }}
36+{% if rabbit_ssl_ca -%}
37+kombu_ssl_ca_certs = {{ rabbit_ssl_ca }}
38+{% endif -%}
39+{% endif -%}
40+{% endif -%}
41+

Subscribers

People subscribed via source and target branches