Skip to content

Instantly share code, notes, and snippets.

# vim: nofoldenable foldmethod=manual
# Snippets for use with VIM and http://www.vim.org/scripts/script.php?script_id=2540
#
# Please contact R.I.Pienaar <rip@devco.net> for additions and feedback,
# see it in action @ http://www.devco.net/archives/2009/09/22/vim_and_puppet.php
# Language Constructs
#snippet class
# class ${1:`Filename('', 'name')`} {
# ${2}
Vagrant::Config.run do |config|
config.vm.define :ns01 do |ns01_config|
ns01_config.ssh.max_tries = 1000
ns01_config.ssh.timeout = 600000
ns01_config.vm.box = "centos5_64-1.4"
ns01_config.vm.network :hostonly, "33.33.33.10"
ns01_config.vm.host_name = "ns01.home.local"
ns01_config.vm.customize ["modifyvm", :id, "--memory", 1024]
ns01_config.vm.boot_mode = :gui
ns01_config.vm.provision :puppet do |puppet|
ERROR ExecutionJob: Unable to start Job execution: could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
at org.codehaus.groovy.grails.orm.hibernate.proxy.HibernateProxyHandler.unwrapProxy(HibernateProxyHandler.java:83)
at org.codehaus.groovy.grails.orm.HibernateProxyHandlerernate.cfg.GrailsHibernateUtil.unwrapProxy(GrailsHibernateUtil.java:404)
at org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsHibernateUtil$unwrapProxy.call(Unableknown Source)
at org.codehaus.groovy.grails.plugins.orm.hibernate.HibernateProxyHandlerernaternatePluginSupport$__clinit__closure94.doCall(HibernatePluginSupport.groovy:397)
at sun.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
class foo(foo_version = $out_of_scope_module::version){
}
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: custom functions must be called with a single array that contains the arguments. For example, function_example([1]) instead of function_example(1) at /etc/puppet/modules/sudo/manifests/init.pp:86 on node ns01.home.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
86 $debug = params_lookup( [ 'debug' , 'global' ] ),
# puppet agent --test --trace
Info: Retrieving plugin
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: custom functions must be called with a single array that contains the arguments. For example, function_example([1]) instead of function_example(1) at /etc/puppet/modules/sudo/manifests/init.pp:86 on node ns01.home.local
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:65:in `deserialize'
Error: custom functions must be called with a single array that contains the arguments. For example, function_example([1]) instead of function_example(1) at /etc/puppet/modules/sudo/manifests/init.pp:87 on node ns01.home.local
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:65:in `function_hiera'
/etc/puppet/modules/puppi/lib/puppet/parser/functions/params_lookup.rb:40:in `real_function_params_lookup'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:63:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:63:in `function_params_lookup'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:31:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:31:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:345:in `set_default_parameters'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:339:in `collect'
Error: custom functions must be called with a single array that contains the arguments. For example, function_example([1]) instead of function_example(1) at /etc/puppet/modules/sudo/manifests/init.pp:87 on node ns01.home.local
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:65:in `function_hiera'
/etc/puppet/modules/puppi/lib/puppet/parser/functions/params_lookup.rb:40:in `real_function_params_lookup'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:63:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:63:in `function_params_lookup'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:31:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:31:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:345:in `set_default_parameters'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:339:in `collect'