Last active
August 29, 2015 14:06
-
-
Save richardc/f824bc36a8d1e9509ab9 to your computer and use it in GitHub Desktop.
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
[main] | |
# https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-facts-hash | |
trusted_node_data = true | |
parser = future |
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
$u = $facts['system_uptime'] | |
each($u) | $k, $v | { | |
notice("$k $v") | |
} |
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
$ puppet apply --config foo.conf foo.pp | |
Notice: 0 { | |
Notice: 1 " | |
Notice: 2 s | |
Notice: 3 e | |
Notice: 4 c | |
Notice: 5 o | |
Notice: 6 n | |
Notice: 7 d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment