Merge lp:~axino/charms/trusty/memcached/trunk into lp:charms/trusty/memcached

Proposed by Junien F
Status: Needs review
Proposed branch: lp:~axino/charms/trusty/memcached/trunk
Merge into: lp:charms/trusty/memcached
Diff against target: 20 lines (+0/-11)
1 file modified
hooks/memcached_hooks.py (+0/-11)
To merge this branch: bzr merge lp:~axino/charms/trusty/memcached/trunk
Reviewer Review Type Date Requested Status
Tim Van Steenburgh (community) Approve
Review via email: mp+336664@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

LGTM

review: Approve
Revision history for this message
Tom Haddon (mthaddon) wrote :

I've merged this into the new lp:memcached-charm repo.

Unmerged revisions

79. By Junien F

don't touch the nrpe and rsync ports, this is the job of the nrpe charm

This is fatal with juju2

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/memcached_hooks.py'
--- hooks/memcached_hooks.py 2017-05-05 10:30:16 +0000
+++ hooks/memcached_hooks.py 2018-01-26 11:28:02 +0000
@@ -299,17 +299,6 @@
299@restart_on_change(RESTART_MAP)299@restart_on_change(RESTART_MAP)
300def nrpe_external_master_relation_changed():300def nrpe_external_master_relation_changed():
301301
302 # make sure it's installed
303 apt_update(fatal=True)
304 apt_install(['nagios-nrpe-server'], fatal=True)
305 ufw.service('5666', 'open')
306 open_port('5666')
307
308 if ('nrpe-external-master' in hook_name()):
309 # make sure rsync port is open for check collection by external master
310 ufw.service('873/tcp', 'open')
311 open_port('873')
312
313 if not os.path.isdir(LOCAL_NAGIOS_PLUGINS):302 if not os.path.isdir(LOCAL_NAGIOS_PLUGINS):
314 os.makedirs(LOCAL_NAGIOS_PLUGINS)303 os.makedirs(LOCAL_NAGIOS_PLUGINS)
315304

Subscribers

People subscribed via source and target branches

to all changes: