coren has submitted this change and it was merged.

Change subject: Labs: Make sure manage-nfs-volumes is running
......................................................................


Labs: Make sure manage-nfs-volumes is running

Make the service ensure => running and add an Icinga check that
it actually is.

Bug: T88669
Bug: T88664
Change-Id: I49eabc7e240d852e25c3564c403152a331d7f186
---
M modules/openstack/manifests/project-nfs-storage-service.pp
1 file changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Yuvipanda: Looks good to me, but someone else must approve
  coren: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/openstack/manifests/project-nfs-storage-service.pp 
b/modules/openstack/manifests/project-nfs-storage-service.pp
index e8b7c8e..27cbd98 100644
--- a/modules/openstack/manifests/project-nfs-storage-service.pp
+++ b/modules/openstack/manifests/project-nfs-storage-service.pp
@@ -10,7 +10,12 @@
     }
 
     service { 'manage-nfs-volumes':
-        enable  => true,
+        ensure  => running,
+    }
+
+    nrpe::monitor_service { 'manage-nfs-volumes':
+        description  => 'manage_nfs_volumes_running',
+        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 
--ereg-argument-array '^/usr/bin/python /usr/local/sbin/manage-nfs-volumes'"
     }
 
     $sudo_privs = [ 'ALL = NOPASSWD: /bin/mkdir -p /srv/*',

-- 
To view, visit https://gerrit.wikimedia.org/r/188814
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I49eabc7e240d852e25c3564c403152a331d7f186
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: coren <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to