From 711b1eeeac23da3dc484f3f5982542c56efe1153 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 29 May 2013 15:01:42 -0400 Subject: [PATCH] Deploy naigos plugins with puppet. (imported from commit ddc4db430ed2b9b7512f28d3f54dd6dfe7f5b264) --- .../puppet/modules/humbug/manifests/app_frontend.pp | 9 +++++++++ servers/puppet/modules/humbug/manifests/base.pp | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/servers/puppet/modules/humbug/manifests/app_frontend.pp b/servers/puppet/modules/humbug/manifests/app_frontend.pp index dfa5b731da..57ae6327c8 100644 --- a/servers/puppet/modules/humbug/manifests/app_frontend.pp +++ b/servers/puppet/modules/humbug/manifests/app_frontend.pp @@ -31,6 +31,15 @@ class humbug::app_frontend { mode => 644, source => "puppet:///modules/humbug/nginx/humbug-include/", } + file { "/usr/lib/nagios/plugins/": + require => Package[nagios], + recurse => true, + purge => false, + owner => "root", + group => "root", + mode => 644, + source => "puppet:///modules/humbug/nagios_plugins/", + } file { "/etc/memcached.conf": require => Package[memcached], ensure => file, diff --git a/servers/puppet/modules/humbug/manifests/base.pp b/servers/puppet/modules/humbug/manifests/base.pp index 48be25d26d..7b781d861a 100644 --- a/servers/puppet/modules/humbug/manifests/base.pp +++ b/servers/puppet/modules/humbug/manifests/base.pp @@ -90,7 +90,15 @@ class humbug::base { group => 'root', mode => 644, } - + file { "/usr/lib/nagios/plugins/": + require => Package[nagios], + recurse => true, + purge => false, + owner => "root", + group => "root", + mode => 644, + source => "puppet:///modules/humbug/nagios_plugins/", + } service { 'ssh': ensure => running, subscribe => File['/etc/ssh/sshd_config'],