aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/monitoring/times.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 09:31:24 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 09:31:24 +0200
commit2bdbb0213a0f70705f81ac2eaf8349668b2c29b4 (patch)
tree06b1e40db99815133dcc40e3e68531d45e1bd228 /modules/profile/manifests/monitoring/times.pp
parent25c99a635507abfe6af4a1f0a9fc5a103d1880c0 (diff)
parentd8bc769648c1528f5d749deee060d70e326ef431 (diff)
downloadPuppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.tar.gz
Puppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.tar.zst
Puppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.zip
Merge branch 'monitoring' into dev
Diffstat (limited to 'modules/profile/manifests/monitoring/times.pp')
-rw-r--r--modules/profile/manifests/monitoring/times.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/profile/manifests/monitoring/times.pp b/modules/profile/manifests/monitoring/times.pp
new file mode 100644
index 0000000..42f5d9c
--- /dev/null
+++ b/modules/profile/manifests/monitoring/times.pp
@@ -0,0 +1,23 @@
1class profile::monitoring::times inherits profile::monitoring::params {
2 Nagios_timeperiod {
3 ensure => "present",
4 owner => "naemon",
5 group => "naemon",
6 target => $objects,
7 notify => Service["naemon"],
8 before => Service["naemon"],
9 require => File["/etc/naemon"],
10 }
11
12 nagios_timeperiod { "24x7":
13 alias => "24 Hours A Day, 7 Days A Week",
14 monday => "00:00-24:00",
15 tuesday => "00:00-24:00",
16 wednesday => "00:00-24:00",
17 thursday => "00:00-24:00",
18 friday => "00:00-24:00",
19 saturday => "00:00-24:00",
20 sunday => "00:00-24:00",
21 }
22
23}