[Puppet Users] Custom reource download to client does not work
Hello Everyone, I have some issues with something that definately worked for me before. When I create a custom resource and put it into a $libdir it does not get downloaded on a client. Instead, after running puppet agent, I receive an unknown resource error. The resource works just fine on my local machine where I created it. Funny thing is that even my old custom resources that were downloaded in the past are not downloaded both on a new client or if I delete the resource from the old one. Restarting puppet does not help. I am not aware of any changes nor to master or clients so I am without a clue what might have gone wrong. Any idea would be appreciated. Thanks, Jian -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/RsBDjrsAnc8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Need help with rspec-puppet
I haven't puppetlabs-rspec-helper gem installed. I added it to my ruby gems and chaneged both spec_helper.rb and Rakefile as described here: https://github.com/cloudsmith/geppetto/issues/391 and it works now. Big thanks to everyone that tried to help me. :-) Dňa streda, 10. októbra 2012 16:48:39 UTC+2 llowder napísal(-a): On Wednesday, October 10, 2012 9:43:47 AM UTC-5, Jian wrote: Anybody else received this or similar error? What I was able to figure out so far is that: by adding require 'puppet' to the spec test my error changes to: Error converting value for param 'plugindest': Error converting value for param 'libdir': Could not find value for $vardir on node puppet-demo So not a big improvement. The error probably occurs before the test itself. Because the error is the same even if I delete the tested .pp file. Any help would be appreciated :-). What version of puppet are you using? Can you share your code - module and test? Either put in the email, or for better readability, use pastie or gist. Dňa štvrtok, 4. októbra 2012 10:24:48 UTC+2 Jian napísal(-a): Hello Everyone, I am fairly new to puppet and I would like to run som unit tests. I hope rspec is the right tool for it. Unfortunately, after setting it up, when I try to execute it I receive the following error: Failures: 1) helloworld Failure/Error: it { should include_class('helloworld') } Puppet::Error: Error converting value for param 'deviceconfig': Could not find value for $confdir on node puppet-demo # ./spec/classes/helloworld_spec.rb:8 Thiss error pops up for any test I try. I wasn't able to find a solution yet. Can you please give me any advice? Thank you. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ugccNfov_CEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Need help with rspec-puppet
Anybody else received this or similar error? What I was able to figure out so far is that: by adding require 'puppet' to the spec test my error changes to: Error converting value for param 'plugindest': Error converting value for param 'libdir': Could not find value for $vardir on node puppet-demo So not a big improvement. The error probably occurs before the test itself. Because the error is the same even if I delete the tested .pp file. Any help would be appreciated :-). Dňa štvrtok, 4. októbra 2012 10:24:48 UTC+2 Jian napísal(-a): Hello Everyone, I am fairly new to puppet and I would like to run som unit tests. I hope rspec is the right tool for it. Unfortunately, after setting it up, when I try to execute it I receive the following error: Failures: 1) helloworld Failure/Error: it { should include_class('helloworld') } Puppet::Error: Error converting value for param 'deviceconfig': Could not find value for $confdir on node puppet-demo # ./spec/classes/helloworld_spec.rb:8 Thiss error pops up for any test I try. I wasn't able to find a solution yet. Can you please give me any advice? Thank you. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/B0NXfe9dD1gJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Need help with rspec-puppet
Hello Everyone, I am fairly new to puppet and I would like to run som unit tests. I hope rspec is the right tool for it. Unfortunately, after setting it up, when I try to execute it I receive the following error: Failures: 1) helloworld Failure/Error: it { should include_class('helloworld') } Puppet::Error: Error converting value for param 'deviceconfig': Could not find value for $confdir on node puppet-demo # ./spec/classes/helloworld_spec.rb:8 Thiss error pops up for any test I try. I wasn't able to find a solution yet. Can you please give me any advice? Thank you. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nhblHh4eNsQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.