summaryrefslogtreecommitdiff
path: root/manifests/defaults/templates.pp
blob: 5158189cbe7b8edcda3919fed3e2666e3b20ec16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# manage nagios_templates
class nagios::defaults::templates {
  include nagios::defaults::vars

  file { 'nagios_templates':
    path    => "${nagios::defaults::vars::int_cfgdir}/nagios_templates.cfg",
    source  => [ "puppet:///modules/site_nagios/configs/${::fqdn}/nagios_templates.cfg",
      "puppet:///modules/site_nagios/configs/${::operatingsystem}/nagios_templates.cfg",
      'puppet:///modules/site_nagios/configs/nagios_templates.cfg',
      "puppet:///modules/nagios/configs/${::operatingsystem}/nagios_templates.cfg",
      'puppet:///modules/nagios/configs/nagios_templates.cfg' ],
    notify  => Service['nagios'],
    owner   => root,
    group   => root,
    mode    => '0644';
  }
}