aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-26 13:16:55 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-26 13:22:56 +0200
commitbf0edb7d7858df64782719f9e6bcc1ba2de57b0f (patch)
tree34427a0d9459c8f680ff2f4a66ef576d9c19d90b /modules/profile/manifests
parent63102a9ba9acce5697d4a0487df038b25ad8f28d (diff)
downloadPuppet-bf0edb7d7858df64782719f9e6bcc1ba2de57b0f.tar.gz
Puppet-bf0edb7d7858df64782719f9e6bcc1ba2de57b0f.tar.zst
Puppet-bf0edb7d7858df64782719f9e6bcc1ba2de57b0f.zip
Add force check monitoring script
Diffstat (limited to 'modules/profile/manifests')
-rw-r--r--modules/profile/manifests/monitoring.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/profile/manifests/monitoring.pp b/modules/profile/manifests/monitoring.pp
index 99956c3..ab8cc62 100644
--- a/modules/profile/manifests/monitoring.pp
+++ b/modules/profile/manifests/monitoring.pp
@@ -2,6 +2,8 @@ class profile::monitoring (
2 Optional[String] $naemon_url = undef, 2 Optional[String] $naemon_url = undef,
3 Optional[String] $naemon_token = undef, 3 Optional[String] $naemon_token = undef,
4) inherits profile::monitoring::params { 4) inherits profile::monitoring::params {
5 $real_hostname = lookup("base_installation::real_hostname")
6
5 ensure_packages(["naemon", "cnagios"], { ensure => latest }) 7 ensure_packages(["naemon", "cnagios"], { ensure => latest })
6 8
7 file { "/etc/naemon": 9 file { "/etc/naemon":
@@ -40,6 +42,12 @@ class profile::monitoring (
40 enable => true, 42 enable => true,
41 } 43 }
42 44
45 file { "/usr/local/sbin/i_naemon_force_check":
46 ensure => present,
47 mode => "0755",
48 content => template("profile/monitoring/force_check.sh.erb"),
49 }
50
43 unless ($naemon_url == undef or empty($naemon_url)) { 51 unless ($naemon_url == undef or empty($naemon_url)) {
44 file { "/etc/naemon/send_nrdp.sh": 52 file { "/etc/naemon/send_nrdp.sh":
45 ensure => "file", 53 ensure => "file",