Skip to content

Instantly share code, notes, and snippets.

@DavidS
Created June 8, 2015 15:05
Show Gist options
  • Save DavidS/5b05df6c27c33883b5d7 to your computer and use it in GitHub Desktop.
Save DavidS/5b05df6c27c33883b5d7 to your computer and use it in GitHub Desktop.
vagrant@localhost:~/tmp$ cat case.pp
warning("\$::kernel == '${::kernel}'")
case $::kernel {
default: { warning('default/Linux - default matched') }
Linux: { warning('default/Linux - Linux matched') }
}
case $::kernel {
default: { warning('default/\'Linux\' - default matched') }
'Linux': { warning('default/\'Linux\' - \'Linux\' matched') }
}
case $::kernel {
'Linux': { warning('\'Linux\'/default - \'Linux\' matched') }
default: { warning('\'Linux\'/default - default matched') }
}
case $::kernel {
'Linux': { warning('Linux/default - Linux matched') }
default: { warning('Linux/default - default matched') }
}
vagrant@localhost:~/tmp$ PUPPET_GEM_VERSION='~> 3.0' rbenv exec bundle exec puppet apply case.pp
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/gce.rb:4, reevaluating anyways
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:21, reevaluating anyways
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:38, reevaluating anyways
Warning: Scope(Class[main]): $::kernel == 'Linux'
Warning: Scope(Class[main]): default/Linux - Linux matched
Warning: Scope(Class[main]): default/'Linux' - 'Linux' matched
Warning: Scope(Class[main]): 'Linux'/default - 'Linux' matched
Warning: Scope(Class[main]): Linux/default - Linux matched
Notice: Compiled catalog for localhost.corp.puppetlabs.net in environment production in 0.01 seconds
Notice: Finished catalog run in 0.01 seconds
vagrant@localhost:~/tmp$ PUPPET_GEM_VERSION='~> 3.0' rbenv exec bundle exec puppet apply --parser=future case.pp
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/gce.rb:4, reevaluating anyways
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:21, reevaluating anyways
Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:38, reevaluating anyways
Warning: Scope(Class[main]): $::kernel == 'Linux'
Warning: Scope(Class[main]): default/Linux - default matched
Warning: Scope(Class[main]): default/'Linux' - 'Linux' matched
Warning: Scope(Class[main]): 'Linux'/default - 'Linux' matched
Warning: Scope(Class[main]): Linux/default - Linux matched
Notice: Compiled catalog for localhost.corp.puppetlabs.net in environment production in 0.27 seconds
Notice: Finished catalog run in 0.01 seconds
vagrant@localhost:~/tmp$ PUPPET_GEM_VERSION='~> 4.0' rbenv exec bundle exec puppet apply case.pp
Warning: Facter: Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/gce.rb:4, reevaluating anyways
Warning: Facter: Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:21, reevaluating anyways
Warning: Facter: Already evaluated rest at /home/vagrant/gems/ruby/1.9.1/gems/facter-2.4.4/lib/facter/ec2.rb:38, reevaluating anyways
Warning: Scope(Class[main]): $::kernel == 'Linux'
Warning: Scope(Class[main]): default/Linux - default matched
Warning: Scope(Class[main]): default/'Linux' - 'Linux' matched
Warning: Scope(Class[main]): 'Linux'/default - 'Linux' matched
Warning: Scope(Class[main]): Linux/default - Linux matched
Notice: Compiled catalog for localhost.corp.puppetlabs.net in environment production in 0.27 seconds
Notice: Applied catalog in 0.01 seconds
vagrant@localhost:~/tmp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment