Hi all, I thought I''d put this in a different thread to avoid confusion. Is there a way to test custom types/providers without deploying them to a node? I''m thinking of something along the lines of "puppet --parseonly" or similar. How do others test what they''ve written, or do you just deploy to a staging environment? Cheers, M. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Jan 21, 2011 at 1:17 PM, Matthew Macdonald-Wallace <lists@truthisfreedom.org.uk> wrote:> Hi all, > > I thought I''d put this in a different thread to avoid confusion. > > Is there a way to test custom types/providers without deploying them to > a node? > > I''m thinking of something along the lines of "puppet --parseonly" or > similar. > > How do others test what they''ve written, or do you just deploy to a > staging environment?I usually use the envpuppet script in the ext/ directory of the puppet source to use the version of Puppet I''m currently hacking on straight out of the Git repository. Please note Puppet scans everything in the ruby $LOAD_PATH, so it''s best to not have Puppet installed into site_ruby. If you use puppet apply, the custom type and provider will work straight away. Hope this helps, -- Jeff McCune http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 21, 1:17 pm, Matthew Macdonald-Wallace <li...@truthisfreedom.org.uk> wrote:> Is there a way to test custom types/providers without deploying them to > a node? > > I''m thinking of something along the lines of "puppet --parseonly" or > similar. > > How do others test what they''ve written, or do you just deploy to a > staging environment?Yes? I have to admit I''m a bit lazy with writing actual rspec tests. My usual testing order would be `puppet apply /tmp/test.pp`, `cucumber- puppet features/catalog/foo.catalog`, then finally running it in a representative test (then staging) environment. I highly recommend cucumber-puppet, you should be able to inspect the clients catalog for resources and values. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.