Skip to content

Instantly share code, notes, and snippets.

@richardc
Last active August 29, 2015 14:06
Show Gist options
  • Save richardc/f824bc36a8d1e9509ab9 to your computer and use it in GitHub Desktop.
Save richardc/f824bc36a8d1e9509ab9 to your computer and use it in GitHub Desktop.
[main]
# https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-facts-hash
trusted_node_data = true
parser = future
$u = $facts['system_uptime']
each($u) | $k, $v | {
notice("$k $v")
}
$ 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