Hi Thomas,
Many thanks for pointing to the new updated documentation.
My idea is to create a functions which has 3 use cases:
- no parameter: return hostname of puppet master
- ip as parameter: return DNS resolved name
- hostname/fqdn as parameter: return IP address from DNS
How to check for explizit “no parameter”?
Should I check for a dummy parameter set to type Undef?
best,
Martin
> --
> You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
puppet-dev+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/55E55AEF.7080008%40puppetlabs.com.
> For more options, visit
https://groups.google.com/d/optout.