OP#436 add nagios config
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
class confdroid_nagios::nagios::resources::resource (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
if $fqdn == $ng_nagios_server {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
concat { $ng_resource_file:
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
|
||||
@@ -19,7 +19,7 @@ define confdroid_nagios::nagios::resources::resource_df (
|
||||
$ng_resource_file = $confdroid_nagios::params::ng_resource_file
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
|
||||
if $fqdn == $ng_nagios_server {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
concat::fragment { "rule_${name}":
|
||||
target => $ng_resource_file,
|
||||
content => template($ng_resource_rule_erb),
|
||||
|
||||
Reference in New Issue
Block a user