Skip to content

Commit

Permalink
add define for timeperiods
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Mar 20, 2012
1 parent cc42221 commit baa6337
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/init.pp
Expand Up @@ -194,4 +194,8 @@
Nagios_hostgroup <<||>> {
notify => Exec['fix_icinga_perms'],
}

Nagios_timeperiod <<||>> {
notify => Exec['fix_icinga_perms'],
}
}
17 changes: 17 additions & 0 deletions manifests/timeperiod.pp
@@ -0,0 +1,17 @@
define icinga::timeperiod {
include icinga::params

$alias = capitalize($name)

@@nagios_timeperiod { $name:
ensure => present,
alias => $alias,
sunday => '00:00-24:00',
monday => '00:00-24:00',
tuesday => '00:00-24:00',
wednesday => '00:00-24:00',
thursday => '00:00-24:00',
friday => '00:00-24:00',
saturday => '00:00-24:00',
}
}

0 comments on commit baa6337

Please sign in to comment.