Merge ~hopem/stsstack-bundles:move-ks-to-overlay into stsstack-bundles:master

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: a7f6a547ad834361149616f7150b9f30b0561477
Proposed branch: ~hopem/stsstack-bundles:move-ks-to-overlay
Merge into: stsstack-bundles:master
Diff against target: 134 lines (+32/-30)
7 files modified
ceph/ceph.yaml.template (+0/-9)
ceph/pipeline/02configure (+3/-0)
openstack/openstack.yaml.template (+0/-12)
openstack/pipeline/02configure (+3/-0)
overlays/keystone.yaml (+23/-0)
swift/pipeline/02configure (+3/-0)
swift/swift.yaml.template (+0/-9)
Reviewer Review Type Date Requested Status
Tiago Pasqualini da Silva (community) Approve
Jolly Bundlers Pending
Review via email: mp+389916@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tiago Pasqualini da Silva (tiago.pasqualini) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ceph/ceph.yaml.template b/ceph/ceph.yaml.template
2index aaa2cc9..b355b64 100644
3--- a/ceph/ceph.yaml.template
4+++ b/ceph/ceph.yaml.template
5@@ -33,15 +33,6 @@ applications:
6 osd-devices: '' # must be empty string when using juju storage
7 storage:
8 osd-devices: cinder,10G,1
9- keystone:
10- num_units: 1
11- charm: cs:~openstack-charmers-next/keystone
12- constraints: mem=1G
13- options:
14- debug: *debug
15- verbose: *verbose
16- admin-password: openstack
17- openstack-origin: *openstack_origin
18 glance:
19 num_units: 1
20 charm: cs:~openstack-charmers-next/glance
21diff --git a/ceph/pipeline/02configure b/ceph/pipeline/02configure
22index e89ac4b..0179af4 100644
23--- a/ceph/pipeline/02configure
24+++ b/ceph/pipeline/02configure
25@@ -5,6 +5,9 @@
26 # All overlay/bundle variables (MOD_PARAMS) defaults must go into
27 # the <module>/module_defaults file.
28
29+# Needed in all cases
30+MOD_OVERLAYS+=( "keystone.yaml" )
31+
32 # NOTE: this is (should be) the same across all modules using mysql
33 if has_min_series focal; then
34 # There is no Focal support for percona-cluster
35diff --git a/openstack/openstack.yaml.template b/openstack/openstack.yaml.template
36index d5b05b6..b1e2fd0 100644
37--- a/openstack/openstack.yaml.template
38+++ b/openstack/openstack.yaml.template
39@@ -24,18 +24,6 @@ applications:
40 options:
41 source: *source
42 min-cluster-size: __NUM_RABBIT_UNITS__
43- keystone:
44- num_units: __NUM_KEYSTONE_UNITS__
45- charm: cs:~openstack-charmers-next/keystone
46- constraints: mem=1G
47- options:
48- debug: *debug
49- verbose: *verbose
50- admin-password: openstack
51- openstack-origin: *openstack_origin
52- ssl_ca: *ssl_ca
53- ssl_cert: *ssl_cert
54- ssl_key: *ssl_key
55 nova-compute:
56 charm: cs:~openstack-charmers-next/nova-compute
57 num_units: __NUM_COMPUTE_UNITS__
58diff --git a/openstack/pipeline/02configure b/openstack/pipeline/02configure
59index 0ddbe2d..05a8057 100644
60--- a/openstack/pipeline/02configure
61+++ b/openstack/pipeline/02configure
62@@ -17,6 +17,9 @@ is_neutron_gateway_required ()
63 fi
64 }
65
66+# Needed in all cases
67+MOD_OVERLAYS+=( "keystone.yaml" )
68+
69 if is_neutron_gateway_required; then
70 MOD_OVERLAYS+=( "neutron-gateway.yaml" )
71 fi
72diff --git a/overlays/keystone.yaml b/overlays/keystone.yaml
73new file mode 100644
74index 0000000..839b7a0
75--- /dev/null
76+++ b/overlays/keystone.yaml
77@@ -0,0 +1,23 @@
78+# Variables
79+debug: &debug True
80+verbose: &verbose True
81+openstack_origin: &openstack_origin __OS_ORIGIN__
82+
83+ssl_ca: &ssl_ca __SSL_CA__
84+ssl_cert: &ssl_cert __SSL_CERT__
85+ssl_key: &ssl_key __SSL_KEY__
86+
87+applications:
88+ keystone:
89+ num_units: __NUM_KEYSTONE_UNITS__
90+ charm: cs:~openstack-charmers-next/keystone
91+ constraints: mem=1G
92+ options:
93+ debug: *debug
94+ verbose: *verbose
95+ admin-password: openstack
96+ openstack-origin: *openstack_origin
97+ ssl_ca: *ssl_ca
98+ ssl_cert: *ssl_cert
99+ ssl_key: *ssl_key
100+
101diff --git a/swift/pipeline/02configure b/swift/pipeline/02configure
102index 5910ef3..e91f6fb 100644
103--- a/swift/pipeline/02configure
104+++ b/swift/pipeline/02configure
105@@ -5,6 +5,9 @@
106 # All overlay/bundle variables (MOD_PARAMS) defaults must go into
107 # the <module>/module_defaults file.
108
109+# Needed in all cases
110+MOD_OVERLAYS+=( "keystone.yaml" )
111+
112 # NOTE: this is (should be) the same across all modules using mysql
113 if has_min_series focal; then
114 # There is no Focal support for percona-cluster
115diff --git a/swift/swift.yaml.template b/swift/swift.yaml.template
116index c0307d3..a295838 100644
117--- a/swift/swift.yaml.template
118+++ b/swift/swift.yaml.template
119@@ -13,15 +13,6 @@ source: &source __SOURCE__
120
121 series: __SERIES__
122 applications:
123- keystone:
124- num_units: 1
125- charm: cs:~openstack-charmers-next/keystone
126- constraints: mem=1G
127- options:
128- debug: *debug
129- verbose: *verbose
130- admin-password: openstack
131- openstack-origin: *openstack_origin
132 glance:
133 num_units: 1
134 charm: cs:~openstack-charmers-next/glance

Subscribers

People subscribed via source and target branches