summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests/server
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-03-10 13:52:06 +0100
committervarac <varacanero@zeromail.org>2016-03-10 16:27:06 +0100
commit91251fd30a7b1e5baa17aeff932d8bd13c370d8a (patch)
tree7f001a4501575bc595c2344a04b13e4b77973426 /puppet/modules/site_nagios/manifests/server
parentf8a54119d7b7b3a3e5042c4ed3bfd03ebb88a544 (diff)
Add Dependencies to site_nagios resources
Diffstat (limited to 'puppet/modules/site_nagios/manifests/server')
-rw-r--r--puppet/modules/site_nagios/manifests/server/add_contacts.pp4
-rw-r--r--puppet/modules/site_nagios/manifests/server/contactgroup.pp4
-rw-r--r--puppet/modules/site_nagios/manifests/server/hostgroup.pp3
3 files changed, 8 insertions, 3 deletions
diff --git a/puppet/modules/site_nagios/manifests/server/add_contacts.pp b/puppet/modules/site_nagios/manifests/server/add_contacts.pp
index db507abf..b5c6f0a5 100644
--- a/puppet/modules/site_nagios/manifests/server/add_contacts.pp
+++ b/puppet/modules/site_nagios/manifests/server/add_contacts.pp
@@ -1,3 +1,4 @@
+# configure a nagios_contact
define site_nagios::server::add_contacts ($contact_emails) {
$environment = $name
@@ -11,6 +12,7 @@ define site_nagios::server::add_contacts ($contact_emails) {
host_notification_options => 'd,r',
service_notification_commands => 'notify-service-by-email',
host_notification_commands => 'notify-host-by-email',
- email => join($contact_emails, ', ')
+ email => join($contact_emails, ', '),
+ require => Package['nagios']
}
}
diff --git a/puppet/modules/site_nagios/manifests/server/contactgroup.pp b/puppet/modules/site_nagios/manifests/server/contactgroup.pp
index 188c54f1..5e60dd06 100644
--- a/puppet/modules/site_nagios/manifests/server/contactgroup.pp
+++ b/puppet/modules/site_nagios/manifests/server/contactgroup.pp
@@ -1,6 +1,8 @@
+# configure a contactgroup
define site_nagios::server::contactgroup ($contact_emails) {
nagios_contactgroup { $name:
- members => $name
+ members => $name,
+ require => Package['nagios']
}
}
diff --git a/puppet/modules/site_nagios/manifests/server/hostgroup.pp b/puppet/modules/site_nagios/manifests/server/hostgroup.pp
index 25623924..0692fced 100644
--- a/puppet/modules/site_nagios/manifests/server/hostgroup.pp
+++ b/puppet/modules/site_nagios/manifests/server/hostgroup.pp
@@ -1,6 +1,7 @@
# create a nagios hostsgroup
define site_nagios::server::hostgroup ($contact_emails) {
nagios_hostgroup { $name:
- ensure => present
+ ensure => present,
+ require => Package['nagios']
}
}