Merge lp:~aglenyoung/charms/precise/mysql/nrpe-support into lp:charms/mysql

Proposed by Andrew Glen-Young
Status: Work in progress
Proposed branch: lp:~aglenyoung/charms/precise/mysql/nrpe-support
Merge into: lp:charms/mysql
Diff against target: 55 lines (+18/-0)
4 files modified
config.yaml (+10/-0)
hooks/install (+2/-0)
hooks/upgrade-charm (+3/-0)
metadata.yaml (+3/-0)
To merge this branch: bzr merge lp:~aglenyoung/charms/precise/mysql/nrpe-support
Reviewer Review Type Date Requested Status
Juan L. Negron (community) Disapprove
Review via email: mp+151123@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Juan L. Negron (negronjl) wrote :

Reviewing this now.

-Juan

Revision history for this message
Juan L. Negron (negronjl) wrote :

Hi agy:

Can you document the nrpe support somewhere in the README? charm proof is complaining about:
I: relation nrpe-external-master has no hooks

I think I know where this is going but, it would be beneficial to have some documentation as to how to use this interface since there is no hook associated with it.

-Juan

review: Disapprove

Unmerged revisions

93. By Andrew Glen-Young

Add support for nrpe-external-master subordinate charm and charm preinstall hooks.

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 2012-09-13 21:44:01 +0000
3+++ config.yaml 2013-02-28 23:02:21 +0000
4@@ -31,3 +31,13 @@
5 default: 'MIXED'
6 type: string
7 description: If binlogging is enabled, this is the format that will be used. Ignored when tuning-level == fast.
8+ nagios_context:
9+ default: "juju"
10+ type: string
11+ description: |
12+ Used by the nrpe-external-master subordinate charm.
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
19=== modified file 'hooks/install'
20--- hooks/install 2012-11-01 21:49:21 +0000
21+++ hooks/install 2013-02-28 23:02:21 +0000
22@@ -1,5 +1,7 @@
23 #!/bin/bash
24
25+[ -d exec.d ] && ( for f in exec.d/*/charm-pre-install; do [ -x $f ] && /bin/sh -c "$f";done )
26+
27 apt-get update
28 apt-get install -y debconf-utils python-mysqldb uuid pwgen dnsutils charm-helper-sh || exit 1
29
30
31=== modified file 'hooks/upgrade-charm'
32--- hooks/upgrade-charm 2012-11-02 06:41:12 +0000
33+++ hooks/upgrade-charm 2013-02-28 23:02:21 +0000
34@@ -1,4 +1,7 @@
35 #!/bin/sh
36+
37+[ -d exec.d ] && ( for f in exec.d/*/charm-pre-install; do [ -x $f ] && /bin/sh -c "$f";done )
38+
39 home=`dirname $0`
40 # Remove any existing .service_user files, which will cause
41 # new users/pw's to be generated, which is a good thing
42
43=== modified file 'metadata.yaml'
44--- metadata.yaml 2012-08-21 00:07:19 +0000
45+++ metadata.yaml 2013-02-28 23:02:21 +0000
46@@ -22,6 +22,9 @@
47 local-monitors:
48 interface: local-monitors
49 scope: container
50+ nrpe-external-master:
51+ interface: nrpe-external-master
52+ scope: container
53 requires:
54 slave:
55 interface: mysql-oneway-replication

Subscribers

People subscribed via source and target branches