summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-26 19:27:33 +0100
committervarac <varacanero@zeromail.org>2013-01-26 19:27:33 +0100
commit0e6ec516c7836b456e207216a53d1c484062229d (patch)
tree7b5bb39aecbdd19f8d906843dcaa20f854598257
parent89029e4d8381531d582a9208c1a4e93003b99637 (diff)
overseen duplicate require's
-rw-r--r--manifests/base.pp33
1 files changed, 11 insertions, 22 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index c048bb5..08fbfb1 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -92,27 +92,23 @@ class nagios::base {
Nagios_command <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_command.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_contact <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_contact.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_contactgroup <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_contactgroup.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_host <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_host.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_hostdependency <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_hostdependency.cfg",
@@ -126,21 +122,18 @@ class nagios::base {
}
Nagios_hostextinfo <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_hostextinfo.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_hostgroup <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_hostgroup.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_service <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_service.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_servicegroup <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_servicegroup.cfg",
@@ -149,27 +142,23 @@ class nagios::base {
}
Nagios_servicedependency <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_servicedependency.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_serviceescalation <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_serviceescalation.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_serviceextinfo <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_serviceextinfo.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
Nagios_timeperiod <||> {
target => "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_timeperiod.cfg",
- require => File['nagios_confd'],
+ require => [ File['nagios_confd'], Package['nagios'] ],
notify => Service['nagios'],
- require => Package['nagios'],
}
file{[ "${nagios::defaults::vars::int_cfgdir}/conf.d/nagios_command.cfg",