On Aug 11, 3:13 pm, Asif Iqbal <vad...@gmail.com> wrote:
[...]
> ok so using --tage classname works just fine. thanks a lot. learned
> something cool
>
> however, if I run the puppetd as a daemon, then I like to control this
> from the puppetmasterd.
>
> Is is possible to config a resource where a node will only get a
> specific class and nothing else?
Puppetmasterd matches exactly one node spec to each client, using the
default node spec if no others match. The classes specified by the
chosen node spec (and only those) are applied to that client. That's
how it should be, and that's how it works for me in version 0.24.8.
I can think of several possible explanations for the behavior you see:
1) Your "nmc-delete" class includes other classes, which are therefore
also applied to any node that gets nmc-delete.
2) You have another node spec somewhere (nodes.pp ?) that matches your
client more closely than the default node spec, and you are getting
the extra classes from there.
3) You are not talking to the puppetmaster you think you are talking
to (e.g., test vs. production).
There are surely other possibilities, but those seem the most likely
to me.
John
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---