Displaying 1 result from an estimated 1 matches for "custom_name".
Did you mean:
custom1name
2007 May 01
8
Custom functions and facts
...% 4
end
end
I''ve managed to get this working by using $fqdn inside my node
definition and passing it through to my custom definition like this:
node ''somenode.domain.com'' {
custom_definition { name: address => $fqdn }
}
define custom_definition ($address){ "custom_name":
$random_hour = hour_from_fqdn($address)
file { "/path/to/file":
content => template("my_template")
}
}
I just wanted to verify that from a call to Facter[''fqdn''].value I
should see somenode.domain.com instead of puppet.domain.com as the
res...