Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created May 3, 2016 16:45
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 anonymous/a6175e41c77edb3df3f402e3f68c19ea to your computer and use it in GitHub Desktop.
Save anonymous/a6175e41c77edb3df3f402e3f68c19ea to your computer and use it in GitHub Desktop.
let(:facts) do
facts.merge({
puppetversion: Puppet.version,
ap_env: 'dev',
ap_region: 'us-east-1',
role: 'ingester'
})
end
role = facts[role]
puts "My Role is #{role}"
puts "My FactsRole is #{facts[role]}"
puts "My FactsRole2 is #{facts[:role]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment