Skip to content

Instantly share code, notes, and snippets.

View linuxdan's full-sized avatar

Daniel E. White linuxdan

  • Maryland, USA
View GitHub Profile
[root@lnxidev11 puppet]# facter -p SecurIDapp_version
11
[root@lnxidev11 puppet]# puppet apply -e 'notice($::SecurIDapp_version)'
Notice: Scope(Class[main]):
Notice: Compiled catalog for puppet6-test.myserver.org in environment production in 0.10 seconds
Notice: Finished catalog run in 0.17 seconds
[root@lnxidev11 puppet]# puppet apply -e 'notify{$::SecurIDapp_version : }'
Notice: Compiled catalog for puppet6-test.myserver.org in environment production in 0.10 seconds
Notice: undef
Notice: /Stage[main]/Main/Notify[undef]/message: defined 'message' as 'undef'
@linuxdan
linuxdan / gist:5187422
Created March 18, 2013 14:13
hiera deep merge won't
[root puppet]# hiera -d -h users -c /etc/puppet/hiera.yaml environment=production
DEBUG: Mon Mar 18 10:05:26 -0400 2013: Hiera YAML backend starting
DEBUG: Mon Mar 18 10:05:26 -0400 2013: Looking up users in YAML backend
DEBUG: Mon Mar 18 10:05:26 -0400 2013: Looking for data source production/common
DEBUG: Mon Mar 18 10:05:26 -0400 2013: Found users in production/common
/usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:156:in `merge_answer': undefined method `deep_merge' for {"beast"=>{"v_ingroups"=>["one", "two"]}}:Hash (NoMethodError)
from /usr/lib/ruby/site_ruby/1.8/hiera/backend/yaml_backend.rb:49:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:68:in `datasources'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in `map'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in `datasources'
From cobbler system report --name=server05.example.org
---------------------------------
Power Management Address : server05_power.example.org
Power Management ID : -P
Power Management Password : ThePassword
Power Management Type : ipmilan
Power Management Username : Administrator
---------------------------------
/etc/cobbler/power/power_ipmilan.template -- original