Puppet Class: nsd
- Inherits:
- ::nsd::params
- Defined in:
- manifests/init.pp
Overview
Installs and configures NSD.
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'manifests/init.pp', line 136
class nsd (
Stdlib::Absolutepath $conf_dir = $::nsd::params::conf_dir,
String $group = $::nsd::params::group,
Boolean $manage_control = $::nsd::params::manage_control,
Boolean $manage_package = $::nsd::params::manage_package,
Optional[String] $package_name = $::nsd::params::package_name,
String $service_name = $::nsd::params::service_name,
# Below map to global configuration parameters
Optional[Stdlib::Absolutepath] $chroot = undef,
Optional[Stdlib::Absolutepath] $control_cert_file = $::nsd::params::control_cert_file,
Optional[Boolean] $control_enable = $::nsd::params::control_enable,
Optional[Array[IP::Address::NoSubnet, 1]] $control_interface = undef,
Optional[Stdlib::Absolutepath] $control_key_file = $::nsd::params::control_key_file,
Optional[Bodgitlib::Port] $control_port = undef,
Optional[Stdlib::Absolutepath] $database = undef,
Optional[Boolean] $do_ip4 = undef,
Optional[Boolean] $do_ip6 = undef,
Optional[Boolean] $hide_version = undef,
Optional[String] $identity = undef,
Optional[Array[NSD::Interface, 1]] $ip_address = undef,
Optional[Boolean] $ip_transparent = undef,
Optional[Integer[0]] $ipv4_edns_size = undef,
Optional[Integer[0]] $ipv6_edns_size = undef,
Optional[Boolean] $log_time_ascii = undef,
Optional[Stdlib::Absolutepath] $logfile = undef,
Optional[Boolean] $minimal_responses = undef,
Optional[String] $nsid = undef,
Optional[Integer[0]] $outgoing_tcp_mss = undef,
Optional[Stdlib::Absolutepath] $pidfile = undef,
Optional[Bodgitlib::Port] $port = undef,
Optional[Boolean] $reuseport = undef,
Optional[Boolean] $round_robin = undef,
Optional[Integer[0, 32]] $rrl_ipv4_prefix_length = undef,
Optional[Integer[0, 128]] $rrl_ipv6_prefix_length = undef,
Optional[Integer[0]] $rrl_ratelimit = undef,
Optional[Integer[0]] $rrl_size = undef,
Optional[Integer[0]] $rrl_slip = undef,
Optional[Integer[0]] $rrl_whitelist_ratelimit = undef,
Optional[Stdlib::Absolutepath] $server_cert_file = $::nsd::params::server_cert_file,
Optional[Integer[1]] $server_count = undef,
Optional[Stdlib::Absolutepath] $server_key_file = $::nsd::params::server_key_file,
Optional[Integer[0]] $statistics = undef,
Optional[Integer[0]] $tcp_count = undef,
Optional[Integer[0]] $tcp_mss = undef,
Optional[Integer[0]] $tcp_query_count = undef,
Optional[Integer[0]] $tcp_timeout = undef,
Optional[String] $username = $::nsd::params::username,
Optional[Integer[0, 3]] $verbosity = undef,
Optional[String] $version = undef,
Optional[Integer[-1]] $xfrd_reload_timeout = undef,
Optional[Stdlib::Absolutepath] $xfrdfile = undef,
Optional[Stdlib::Absolutepath] $xfrdir = undef,
Optional[Boolean] $zonefiles_check = undef,
Optional[Integer[0]] $zonefiles_write = undef,
Optional[Stdlib::Absolutepath] $zonelistfile = undef,
Optional[Stdlib::Absolutepath] $zonesdir = $::nsd::params::zonesdir,
) inherits ::nsd::params {
if $manage_control and ($control_cert_file != $::nsd::params::control_cert_file or $control_key_file != $::nsd::params::control_key_file or $server_cert_file != $::nsd::params::server_cert_file or $server_key_file != $::nsd::params::server_key_file) {
fail('Cannot have $manage_control enabled with non-standard locations for remote control keys and/or certificates')
}
contain ::nsd::install
contain ::nsd::config
contain ::nsd::service
Class['::nsd::install'] ~> Class['::nsd::config'] ~> Class['::nsd::service']
}
|