2017-07-26 15:27:16 +01:00
|
|
|
## cd_nagios::nagios::objects::contactgroups.pp
|
|
|
|
|
# Module name: cd_nagios
|
|
|
|
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
2017-07-27 11:05:58 +01:00
|
|
|
# @summary Class manages base contactgroups which always should be there.
|
|
|
|
|
# @example
|
|
|
|
|
# @@nagios_contactgroup { 'admins':
|
2025-05-12 15:56:17 +02:00
|
|
|
# ensure => present,
|
|
|
|
|
# alias => 'Nagios Administrators',
|
|
|
|
|
# contactgroup_name => 'admins',
|
|
|
|
|
# owner => $ng_user,
|
|
|
|
|
# group => $ng_user,
|
|
|
|
|
# mode => '0640',
|
|
|
|
|
# register => '1',
|
|
|
|
|
# target => $ng_tgt_contactgroup_base,
|
2017-07-27 11:05:58 +01:00
|
|
|
# }
|
2017-07-26 15:27:16 +01:00
|
|
|
################################################################################
|
|
|
|
|
class cd_nagios::nagios::objects::contactgroups (
|
|
|
|
|
|
|
|
|
|
) inherits cd_nagios::params {
|
|
|
|
|
if $::fqdn == $ng_nagios_server {
|
|
|
|
|
@@nagios_contactgroup { 'admins':
|
2025-05-12 15:56:17 +02:00
|
|
|
ensure => present,
|
|
|
|
|
alias => 'Nagios Administrators',
|
|
|
|
|
contactgroup_name => 'admins',
|
|
|
|
|
owner => $ng_user,
|
|
|
|
|
group => $ng_user,
|
|
|
|
|
mode => '0640',
|
|
|
|
|
register => '1',
|
|
|
|
|
target => $ng_tgt_contactgroup_base,
|
2017-07-26 15:27:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@nagios_contactgroup { 'operations':
|
2025-05-12 15:56:17 +02:00
|
|
|
ensure => present,
|
|
|
|
|
alias => 'Operations Team',
|
|
|
|
|
contactgroup_name => 'operations',
|
|
|
|
|
owner => $ng_user,
|
|
|
|
|
group => $ng_user,
|
|
|
|
|
mode => '0640',
|
|
|
|
|
register => '1',
|
|
|
|
|
target => $ng_tgt_contactgroup_base,
|
2017-07-26 15:27:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@nagios_contactgroup { 'support':
|
2025-05-12 15:56:17 +02:00
|
|
|
ensure => present,
|
|
|
|
|
alias => 'Support Team',
|
|
|
|
|
contactgroup_name => 'support',
|
|
|
|
|
owner => $ng_user,
|
|
|
|
|
group => $ng_user,
|
|
|
|
|
mode => '0640',
|
|
|
|
|
register => '1',
|
|
|
|
|
target => $ng_tgt_contactgroup_base,
|
2017-07-26 15:27:16 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|