Puppet Class: confdroid_nagios::nagios::resources::resource
- Inherits:
- confdroid_nagios::params
- Defined in:
- manifests/nagios/resources/resource.pp
Summary
Class manages the resource config file header.Overview
confdroid_nagios::nagios::resources::resource.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com) }
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/nagios/resources/resource.pp', line 11
class confdroid_nagios::nagios::resources::resource (
) inherits confdroid_nagios::params {
if $ng_nagios_server == $fqdn {
concat { $ng_resource_file:
ensure => present,
owner => 'root',
group => 'nagios',
mode => '0640',
selrange => s0,
selrole => object_r,
seltype => nagios_etc_t,
seluser => system_u,
notify => Service[$ng_service],
}
concat::fragment { 'header':
target => $ng_resource_file,
content => template($ng_resource_erb),
order => '000',
}
# plugins rule
confdroid_nagios::nagios::resources::resource_df { 'user_rule_plugins':
ng_user_arg_name => 'USER1',
ng_user_arg_value => '/usr/lib64/nagios/plugins/',
ng_user_arg_comment => 'Sets user1 to be the path to the plugins',
}
# eventhandlers rule
confdroid_nagios::nagios::resources::resource_df { 'user_rule_eventhandlers':
ng_user_arg_name => 'USER2',
ng_user_arg_value => '/usr/lib64/nagios/plugins/eventhandlers/',
ng_user_arg_comment => 'Sets user2 to be the path to the eventhandlers',
}
}
}
|