Skip to content

Instantly share code, notes, and snippets.

@BronsonQuick
Created January 3, 2016 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BronsonQuick/e25e3a376ca24d1c20b6 to your computer and use it in GitHub Desktop.
Save BronsonQuick/e25e3a376ca24d1c20b6 to your computer and use it in GitHub Desktop.
View all the puppet variables on this client
class all_facts_file {
file { '/tmp/facts.yaml':
content => inline_template('<%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(String) ) }.to_yaml %>'),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment