On Tue, Aug 11, 2009 at 3:22 PM, Nigel Kersten<nig...@google.com> wrote: > > > On Tue, Aug 11, 2009 at 12:17 PM, Asif Iqbal <vad...@gmail.com> wrote: >> >> Hi do I apply only one class to a node? >> >> In my `site.pp' file I am saying >> >> pup...@sys-ubuntu:/etc/puppet$ cat manifests/site.pp >> #site.pp >> import "classes/*.pp" >> >> node default { include nmc-delete } >> >> But the node is also getting resources from other classes like `nmc' >> >> notice: //Nmc::Myuser[tkimpto]/User[tkimpto]/ensure: created >> >> Here is a list of classes >> pup...@sys-ubuntu:/etc/puppet$ ls -1 manifests/classes/*.pp >> manifests/classes/newungrp.pp >> manifests/classes/newuthngrp.pp >> manifests/classes/nmc2.pp >> manifests/classes/nmc-delete.pp >> manifests/classes/nmc.pp >> manifests/classes/sudo.pp >> >> How do I force a node to get resources only from one specific class >> and do not look into others? > > http://reductivelabs.com/trac/puppet/wiki/UsingTags > > particularly "Classes automatically tag everything in them with the class > name, so this isn't usually needed. This works the same way in nodes."
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? > > > > > -- > Nigel Kersten > nig...@google.com > System Administrator > Google, Inc. > > > > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---