Merge lp:~oddbloke/charms/trusty/ubuntu-repository-cache/nrpe-servicegroups into lp:charms/trusty/ubuntu-repository-cache

Proposed by Dan Watkins
Status: Merged
Merged at revision: 205
Proposed branch: lp:~oddbloke/charms/trusty/ubuntu-repository-cache/nrpe-servicegroups
Merge into: lp:charms/trusty/ubuntu-repository-cache
Diff against target: 38 lines (+12/-5)
2 files modified
config.yaml (+11/-5)
hooks/hooks.py (+1/-0)
To merge this branch: bzr merge lp:~oddbloke/charms/trusty/ubuntu-repository-cache/nrpe-servicegroups
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Robert C Jennings (community) Approve
Review via email: mp+275009@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dan Watkins (oddbloke) wrote :

This turned out to be pretty painless, because we had already pulled in a charmhelpers that supports it as part of a different change.

Revision history for this message
Robert C Jennings (rcj) wrote :

One comment on update_checks()

Revision history for this message
Robert C Jennings (rcj) wrote :

Re-reading the code, I see that you added the service.update_checks() to the 'config-changed' hook which is absolutely correct.

review: Approve
Revision history for this message
Dan Watkins (oddbloke) :
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-03-27 20:24:30 +0000
3+++ config.yaml 2015-10-20 11:31:49 +0000
4@@ -28,11 +28,17 @@
5 default: 'juju'
6 type: string
7 description: |
8- A string that will be prepended to instance name to set the host name
9- in nagios. So for instance the hostname would be something like:
10- juju-myservice-0
11- If you're running multiple environments with the same services in them
12- this allows you to differentiate between them.
13+ A string that will be prepended to instance name to set the host name
14+ in nagios. So for instance the hostname would be something like:
15+ juju-myservice-0
16+ If you're running multiple environments with the same services in them
17+ this allows you to differentiate between them.
18+ nagios_servicegroups:
19+ default: ""
20+ type: string
21+ description: |
22+ A comma-separated list of nagios servicegroups.
23+ If left empty, the nagios_context will be used as the servicegroup
24 apache2_server_tokens:
25 type: string
26 description: |
27
28=== modified file 'hooks/hooks.py'
29--- hooks/hooks.py 2015-06-08 16:17:55 +0000
30+++ hooks/hooks.py 2015-10-20 11:31:49 +0000
31@@ -46,6 +46,7 @@
32
33 LOG('Config changed for %s' % SERVICE)
34 service.render_configs()
35+ service.update_checks()
36
37
38 @HOOKS.hook('upgrade-charm')

Subscribers

People subscribed via source and target branches

to all changes: