Merge ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:remove-apache-extra into ubuntu-mirror-charm:master

Proposed by Paul Collins
Status: Merged
Approved by: Haw Loeung
Approved revision: e2835aea0a4e2775e54f9185e23bfc878f1117f4
Merged at revision: 70647c0eae91f2d765ec6d9a6a62b9afc4e0698e
Proposed branch: ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:remove-apache-extra
Merge into: ubuntu-mirror-charm:master
Diff against target: 356 lines (+1/-101)
11 files modified
config.yaml (+0/-80)
hooks/Config.py (+1/-3)
templates/apache-cdimage.tmpl (+0/-2)
templates/apache-cloud-images.tmpl (+0/-2)
templates/apache-maas-images.tmpl (+0/-2)
templates/apache-old-releases.tmpl (+0/-2)
templates/apache-ports.tmpl (+0/-2)
templates/apache-releases.tmpl (+0/-2)
templates/apache-simple-streams.tmpl (+0/-2)
templates/apache-ubuntu-cloud-archive.tmpl (+0/-2)
templates/apache-ubuntu.tmpl (+0/-2)
Reviewer Review Type Date Requested Status
Haw Loeung +1 Approve
Canonical IS Reviewers Pending
Review via email: mp+410989@code.launchpad.net

Commit message

remove all of the apache early/late extra-config settings

To post a comment you must log in.
Revision history for this message
Haw Loeung (hloeung) wrote :

lgtm

review: Approve (+1)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 70647c0eae91f2d765ec6d9a6a62b9afc4e0698e

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/config.yaml b/config.yaml
2index 2faeca9..582b256 100644
3--- a/config.yaml
4+++ b/config.yaml
5@@ -87,14 +87,6 @@ options:
6 default: ""
7 type: string
8 description: "A base64 string containing the ssh trigger public key"
9- mirror_ubuntu_apache_early_extra:
10- default: ""
11- type: string
12- description: "A base64 string containing apache configuration options to be included early in the config file"
13- mirror_ubuntu_apache_late_extra:
14- default: ""
15- type: string
16- description: "A base64 string containing apache configuration options to be included late in the config file"
17 mirror_ubuntu_downstream_mirrors:
18 default: ""
19 type: "string"
20@@ -152,14 +144,6 @@ options:
21 default: ""
22 type: string
23 description: "A base64 string containing the ssh trigger public key"
24- mirror_ubuntu-cloud-archive_apache_early_extra:
25- default: ""
26- type: string
27- description: "A base64 string containing apache configuration options to be included early in the config file"
28- mirror_ubuntu-cloud-archive_apache_late_extra:
29- default: ""
30- type: string
31- description: "A base64 string containing apache configuration options to be included late in the config file"
32 mirror_ubuntu-cloud-archive_downstream_mirrors:
33 default: ""
34 type: "string"
35@@ -217,14 +201,6 @@ options:
36 default: ""
37 type: string
38 description: "A base64 string containing the ssh trigger public key"
39- mirror_releases_apache_early_extra:
40- default: ""
41- type: string
42- description: "A base64 string containing apache configuration options to be included early in the config file"
43- mirror_releases_apache_late_extra:
44- default: ""
45- type: string
46- description: "A base64 string containing apache configuration options to be included late in the config file"
47 mirror_releases_downstream_mirrors:
48 default: ""
49 type: "string"
50@@ -282,14 +258,6 @@ options:
51 default: ""
52 type: string
53 description: "A base64 string containing the ssh trigger public key"
54- mirror_cloud-images_apache_early_extra:
55- default: ""
56- type: string
57- description: "A base64 string containing apache configuration options to be included early in the config file"
58- mirror_cloud-images_apache_late_extra:
59- default: ""
60- type: string
61- description: "A base64 string containing apache configuration options to be included late in the config file"
62 mirror_cloud-images_downstream_mirrors:
63 default: ""
64 type: "string"
65@@ -347,14 +315,6 @@ options:
66 default: ""
67 type: string
68 description: "A base64 string containing the ssh trigger public key"
69- mirror_simple-streams_apache_early_extra:
70- default: ""
71- type: string
72- description: "A base64 string containing apache configuration options to be included early in the config file"
73- mirror_simple-streams_apache_late_extra:
74- default: ""
75- type: string
76- description: "A base64 string containing apache configuration options to be included late in the config file"
77 mirror_simple-streams_downstream_mirrors:
78 default: ""
79 type: "string"
80@@ -412,14 +372,6 @@ options:
81 default: ""
82 type: string
83 description: "A base64 string containing the ssh trigger public key"
84- mirror_cdimage_apache_early_extra:
85- default: ""
86- type: string
87- description: "A base64 string containing apache configuration options to be included early in the config file"
88- mirror_cdimage_apache_late_extra:
89- default: ""
90- type: string
91- description: "A base64 string containing apache configuration options to be included late in the config file"
92 mirror_cdimage_downstream_mirrors:
93 default: ""
94 type: "string"
95@@ -477,14 +429,6 @@ options:
96 default: ""
97 type: string
98 description: "A base64 string containing the ssh trigger public key"
99- mirror_ports_apache_early_extra:
100- default: ""
101- type: string
102- description: "A base64 string containing apache configuration options to be included early in the config file"
103- mirror_ports_apache_late_extra:
104- default: ""
105- type: string
106- description: "A base64 string containing apache configuration options to be included late in the config file"
107 mirror_ports_downstream_mirrors:
108 default: ""
109 type: "string"
110@@ -542,14 +486,6 @@ options:
111 default: ""
112 type: string
113 description: "A base64 string containing the ssh trigger public key"
114- mirror_maas-images_apache_early_extra:
115- default: ""
116- type: string
117- description: "A base64 string containing apache configuration options to be included early in the config file"
118- mirror_maas-images_apache_late_extra:
119- default: ""
120- type: string
121- description: "A base64 string containing apache configuration options to be included late in the config file"
122 mirror_maas-images_downstream_mirrors:
123 default: ""
124 type: "string"
125@@ -617,14 +553,6 @@ options:
126 default: ""
127 type: string
128 description: "A base64 string containing the ssh trigger public key"
129- mirror_linuxcontainers_apache_early_extra:
130- default: ""
131- type: string
132- description: "A base64 string containing apache configuration options to be included early in the config file"
133- mirror_linuxcontainers_apache_late_extra:
134- default: ""
135- type: string
136- description: "A base64 string containing apache configuration options to be included late in the config file"
137 mirror_linuxcontainers_downstream_mirrors:
138 default: ""
139 type: "string"
140@@ -682,14 +610,6 @@ options:
141 default: ""
142 type: string
143 description: "A base64 string containing the ssh trigger public key"
144- mirror_old-releases_apache_early_extra:
145- default: ""
146- type: string
147- description: "A base64 string containing apache configuration options to be included early in the config file"
148- mirror_old-releases_apache_late_extra:
149- default: ""
150- type: string
151- description: "A base64 string containing apache configuration options to be included late in the config file"
152 mirror_old-releases_downstream_mirrors:
153 default: ""
154 type: "string"
155diff --git a/hooks/Config.py b/hooks/Config.py
156index 5f41727..7e5523e 100755
157--- a/hooks/Config.py
158+++ b/hooks/Config.py
159@@ -22,8 +22,6 @@ ROLE_CONFIG_KEYS = [
160 "rsync_module",
161 "sync_time",
162 "trigger",
163- "apache_late_extra",
164- "apache_early_extra",
165 "downstream_mirrors",
166 "trigger_keyfile",
167 ]
168@@ -151,7 +149,7 @@ class Config:
169 log("CHARM: No config value for {}".format(config_key))
170 raise ValueError
171
172- if key in ["trigger", "apache_late_extra", "apache_early_extra"]:
173+ if key == "trigger":
174 # Base64 expansion needed
175 try:
176 map[key] = str(base64.b64decode(value))
177diff --git a/templates/apache-cdimage.tmpl b/templates/apache-cdimage.tmpl
178index aaf8502..993a456 100644
179--- a/templates/apache-cdimage.tmpl
180+++ b/templates/apache-cdimage.tmpl
181@@ -1,7 +1,6 @@
182 #for $port in $ports
183 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
184 <VirtualHost ${sockets}>
185-${apache_early_extra}
186 ServerName ${name}
187 #for $alias in $aliases
188 ServerAlias ${alias}
189@@ -32,7 +31,6 @@ ${apache_early_extra}
190 IndexIgnore favicon.ico
191 AllowOverride FileInfo Indexes
192 </Directory>
193-${apache_late_extra}
194 </VirtualHost>
195
196 #end for
197diff --git a/templates/apache-cloud-images.tmpl b/templates/apache-cloud-images.tmpl
198index 70118bd..d5cf82f 100644
199--- a/templates/apache-cloud-images.tmpl
200+++ b/templates/apache-cloud-images.tmpl
201@@ -1,7 +1,6 @@
202 #for $port in $ports
203 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
204 <VirtualHost ${sockets}>
205-${apache_early_extra}
206 ServerName ${name}
207 #for $alias in $aliases
208 ServerAlias ${alias}
209@@ -32,7 +31,6 @@ ${apache_early_extra}
210 IndexIgnore favicon.ico
211 AllowOverride FileInfo Indexes
212 </Directory>
213-${apache_late_extra}
214 </VirtualHost>
215
216 #end for
217diff --git a/templates/apache-maas-images.tmpl b/templates/apache-maas-images.tmpl
218index d9357d9..8263441 100644
219--- a/templates/apache-maas-images.tmpl
220+++ b/templates/apache-maas-images.tmpl
221@@ -1,7 +1,6 @@
222 #for $port in $ports
223 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
224 <VirtualHost ${sockets}>
225-${apache_early_extra}
226 ServerName ${name}
227 #for $alias in $aliases
228 ServerAlias ${alias}
229@@ -34,7 +33,6 @@ ${apache_early_extra}
230 IndexIgnore favicon.ico
231 AllowOverride FileInfo Indexes
232 </Directory>
233-${apache_late_extra}
234 </VirtualHost>
235
236 #end for
237diff --git a/templates/apache-old-releases.tmpl b/templates/apache-old-releases.tmpl
238index 2c2df87..fcf4538 100644
239--- a/templates/apache-old-releases.tmpl
240+++ b/templates/apache-old-releases.tmpl
241@@ -1,7 +1,6 @@
242 #for $port in $ports
243 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
244 <VirtualHost ${sockets}>
245-${apache_early_extra}
246 ServerName ${name}
247 #for $alias in $aliases
248 ServerAlias ${alias}
249@@ -50,7 +49,6 @@ ${apache_early_extra}
250 Options +Indexes +FollowSymLinks
251 IndexIgnore favicon.ico
252 </Directory>
253-${apache_late_extra}
254 </VirtualHost>
255
256 #end for
257diff --git a/templates/apache-ports.tmpl b/templates/apache-ports.tmpl
258index 682ad9e..c65f582 100644
259--- a/templates/apache-ports.tmpl
260+++ b/templates/apache-ports.tmpl
261@@ -1,7 +1,6 @@
262 #for $port in $ports
263 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
264 <VirtualHost ${sockets}>
265-${apache_early_extra}
266 ServerName ${name}
267 #for $alias in $aliases
268 ServerAlias ${alias}
269@@ -31,7 +30,6 @@ ${apache_early_extra}
270 Options +Indexes +FollowSymLinks
271 IndexIgnore favicon.ico
272 </Directory>
273-${apache_late_extra}
274 </VirtualHost>
275
276 #end for
277diff --git a/templates/apache-releases.tmpl b/templates/apache-releases.tmpl
278index 93edd16..3b4761d 100644
279--- a/templates/apache-releases.tmpl
280+++ b/templates/apache-releases.tmpl
281@@ -1,7 +1,6 @@
282 #for $port in $ports
283 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
284 <VirtualHost ${sockets}>
285-${apache_early_extra}
286 ServerName ${name}
287 #for $alias in $aliases
288 ServerAlias ${alias}
289@@ -32,7 +31,6 @@ ${apache_early_extra}
290 IndexIgnore favicon.ico
291 AllowOverride FileInfo Indexes
292 </Directory>
293-${apache_late_extra}
294 </VirtualHost>
295
296 #end for
297diff --git a/templates/apache-simple-streams.tmpl b/templates/apache-simple-streams.tmpl
298index 43df003..fb90169 100644
299--- a/templates/apache-simple-streams.tmpl
300+++ b/templates/apache-simple-streams.tmpl
301@@ -1,7 +1,6 @@
302 #for $port in $ports
303 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
304 <VirtualHost ${sockets}>
305-${apache_early_extra}
306 ServerName ${name}
307 #for $alias in $aliases
308 ServerAlias ${alias}
309@@ -35,7 +34,6 @@ ${apache_early_extra}
310
311 # cRT#130349
312 AddOutputFilterByType DEFLATE application/json
313-${apache_late_extra}
314 </VirtualHost>
315
316 #end for
317diff --git a/templates/apache-ubuntu-cloud-archive.tmpl b/templates/apache-ubuntu-cloud-archive.tmpl
318index b87f5bf..8d76ab1 100644
319--- a/templates/apache-ubuntu-cloud-archive.tmpl
320+++ b/templates/apache-ubuntu-cloud-archive.tmpl
321@@ -1,7 +1,6 @@
322 #for $port in $ports
323 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
324 <VirtualHost ${sockets}>
325-${apache_early_extra}
326 ServerName ${name}
327 #for $alias in $aliases
328 ServerAlias ${alias}
329@@ -51,7 +50,6 @@ ${apache_early_extra}
330 Options +Indexes +FollowSymLinks
331 IndexIgnore favicon.ico
332 </Directory>
333-${apache_late_extra}
334 </VirtualHost>
335
336 #end for
337diff --git a/templates/apache-ubuntu.tmpl b/templates/apache-ubuntu.tmpl
338index 5dbb4fb..be7c7fd 100644
339--- a/templates/apache-ubuntu.tmpl
340+++ b/templates/apache-ubuntu.tmpl
341@@ -1,7 +1,6 @@
342 #for $port in $ports
343 #set $sockets = ' '.join(sorted(['{}:{}'.format(address, port) for address in $addresses]))
344 <VirtualHost ${sockets}>
345-${apache_early_extra}
346 ServerName ${name}
347 #for $alias in $aliases
348 ServerAlias ${alias}
349@@ -55,7 +54,6 @@ ${apache_early_extra}
350 Options +Indexes +FollowSymLinks
351 IndexIgnore favicon.ico
352 </Directory>
353-${apache_late_extra}
354 </VirtualHost>
355
356 #end for

Subscribers

People subscribed via source and target branches