On Mon, Feb 27, 2012 at 4:13 PM, Sonia Hamilton <[email protected]> wrote:
> (Puppet 0.25.4).
>
> Is there an easy way of doing a puppet client run with just one class,
> so I can test it?
>
> I've inherited an old, crufty puppet setup with lots of classes, and I
> want to go through each class one by one and watch the puppet client
> running against puppetd.
>
> Thanks, Sonia.

Rather than trying to do this in agent/master, probably much easier to
replicate all your modules to your agent for testing. I think you can
run:

puppet -e "include 'sample' " --noop
...

In 2.6+ should be:
puppet apply -e "class { 'sample': }" --noop

Most likely your modules will have interdependencies between each
other, so it probably won't be this straightforward. If the authors of
the modules provided tests directories and manifests in them, maybe
you can run against them instead.

HTH,

Nan

-- 
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.

Reply via email to