Skip to content

Instantly share code, notes, and snippets.

@igalic
Created January 30, 2014 14:04
Show Gist options
  • Save igalic/8708997 to your computer and use it in GitHub Desktop.
Save igalic/8708997 to your computer and use it in GitHub Desktop.
define foo(
$hashish = $title
){
notify { "foo smoking some hashish: ${hashish}":}
}
$bar = {
x => 'y',
y => 'z',
}
foo { $bar: }
% puppet apply --verbose foo.pp
WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1
/dev/mem: Permission denied
Warning: Could not retrieve fact fqdn
Notice: Compiled catalog for levix in environment production in 0.05 seconds
/dev/mem: Permission denied
Info: Applying configuration version '1391090648'
Notice: foo smoking some hashish: {"x"=>"y", "y"=>"z"}
Notice: /Stage[main]/Main/Foo[{"x"=>"y", "y"=>"z"}]/Notify[foo smoking some hashish: {"x"=>"y", "y"=>"z"}]/message: defined 'message' as 'foo smoking some hashish: {"x"=>"y", "y"=>"z"}'
Notice: Finished catalog run in 0.33 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment