blob: 1500a0987d985832f9aaf4a35f54eda28e55d396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
define sshd::nagios(
$ensure = 'present',
$check_hostname = 'absent'
) {
case $check_hostname {
'absent': {
nagios::service{"ssh_port_${name}":
ensure => $esnure,
check_command => "check_ssh_port!$name"
}
}
default: {
nagios::service{"ssh_port_host_${name}_${check_hostname}":
ensure => $esnure,
check_command => "check_ssh_port_host!${name}!${check_hostname}"
}
}
}
}
|