I'm going through a module that manages network, in order to understand how puppet modules work, what I'm stuck on is understanding what $::nisdomainname is, where did it come from and what does "$::" mean and why is the nisdomain portion outside the define block? An excerpt from a file in the module is below, can someone help me with the understanding?
define network::global (
$hostnamemod = '',
$gateway = '',
$vlan = '',
$nozeroconf = '',
$gatewaydev = ''
) {
$nisdomain = $::nisdomainname ? {
'' => '',
default => $::nisdomainname,
}
Thanks in advance Dan