More instance variable cleanup
This commit is contained in:
parent
49a8ae3004
commit
0e4f99b1bc
9 changed files with 18 additions and 18 deletions
|
@ -308,7 +308,7 @@ class nagios::server inherits nagios::server::manual {
|
|||
define nagios::contact::email($group=["all"],
|
||||
$confdir=$nagios::common::confdir) {
|
||||
|
||||
$contactgroups = inline_template('<%= group.join(",") -%>')
|
||||
$contactgroups = inline_template('<%= @group.join(",") -%>')
|
||||
|
||||
file { "${confdir}/contact_${name}.cfg":
|
||||
ensure => present,
|
||||
|
@ -346,7 +346,7 @@ define nagios::contact::email($group=["all"],
|
|||
define nagios::contact::prowl($group=["all"],
|
||||
$confdir=$nagios::common::confdir) {
|
||||
|
||||
$contactgroups = inline_template('<%= group.join(",") -%>')
|
||||
$contactgroups = inline_template('<%= @group.join(",") -%>')
|
||||
|
||||
file { "${confdir}/contact_prowl_${name}.cfg":
|
||||
ensure => present,
|
||||
|
@ -386,7 +386,7 @@ define nagios::contact::prowl($group=["all"],
|
|||
define nagios::contact::pushover($token, $group=["all"],
|
||||
$confdir=$nagios::common::confdir) {
|
||||
|
||||
$contactgroups = inline_template('<%= group.join(",") -%>')
|
||||
$contactgroups = inline_template('<%= @group.join(",") -%>')
|
||||
|
||||
file { "${confdir}/contact_pushover_${name}.cfg":
|
||||
ensure => present,
|
||||
|
@ -448,7 +448,7 @@ define nagios::host($address=undef, $group="NONE", $osname="NONE",
|
|||
use => "default",
|
||||
target => "${confdir}/host_${name}.cfg",
|
||||
parents => is_array($parent) ? {
|
||||
true => inline_template('<%= parent.join(",") -%>'),
|
||||
true => inline_template('<%= @parent.join(",") -%>'),
|
||||
false => $parent,
|
||||
},
|
||||
notify => Service["nagios"],
|
||||
|
|
|
@ -27,7 +27,7 @@ class nagios::target($parent=undef) {
|
|||
osname => $::operatingsystem,
|
||||
osicon => $::osfamily ? {
|
||||
"" => "NONE",
|
||||
default => inline_template("<%= osfamily.downcase %>")
|
||||
default => inline_template("<%= @osfamily.downcase %>")
|
||||
},
|
||||
parent => $parent,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue