Puppet Class: unbound::config
- Defined in:
- manifests/config.pp
Overview
Class: unbound::config
2 3 4 5 6 7 8 9 10 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 |
# File 'manifests/config.pp', line 2
class unbound::config {
assert_private()
$config_sub_dir = $unbound::config_sub_dir
file { $unbound::config_dir:
ensure => directory,
purge => true,
recurse => true,
owner => 'root',
group => $unbound::group,
mode => '0750',
}
file { $unbound::config_file:
ensure => file,
owner => 'root',
group => $unbound::group,
mode => '0640',
content => template('unbound/unbound.conf.erb'),
}
file { $config_sub_dir:
ensure => directory,
purge => true,
recurse => true,
owner => 'root',
group => $unbound::group,
mode => '0750',
}
contain unbound::config::server
contain unbound::config::remote_control
contain unbound::config::module_config
contain unbound::config::python
create_resources('::unbound::stub_zone', $unbound::stub_zones)
create_resources('::unbound::forward_zone', $unbound::forward_zones)
create_resources('::unbound::view', $unbound::views)
}
|