Created
August 16, 2012 00:27
-
-
Save ryanycoleman/3364988 to your computer and use it in GitHub Desktop.
Silly example usage of the functions provided by Forge module dalen-dnsquery http://forge.puppetlabs.com/dalen/dnsquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $forge_cname = dns_cname('forge.puppetlabs.com') | |
| $dns_a = dns_a( $forge_cname ) | |
| $dns_aaaa = dns_aaaa('forge.puppetlabs.com') | |
| notify { "forge.puppetlabs.com is a cname for ${forge_cname} with IPs ${dns_a} & ${dns_aaaa}": } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@vm:~# puppet apply dalen-dnsquery.pp | |
| notice: forge.puppetlabs.com is a cname for idun.puppetlabs.com with IPs 74.207.228.89 & 2600:3C02::F03C:91FF:FEDF:2863 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment