On Fri, Jan 21, 2011 at 1:17 PM, Matthew Macdonald-Wallace <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
