On 17 May 2013 10:33, Stephen Wallace <whizbang.wall...@gmail.com> wrote:
> Hi all, > > I know that there are likely a few ways to solve the following. I just > don't know what the best way may be :) > > We're trying to work out how do something similar to the following > scenario. > > How do we apply a policy to uninstall CUPS from all servers, except for a > configurable group of "some". > > To put it another way, how can we have an policy that will configure CUPS > on a known list of servers (hiera array perhaps?), and uninstall from all > other $kernel=Linux machines? > Since you haven't actually mentioned how you are doing it I am going to assume you have your cups package resource in a class or module somewhere that gets included on all node. Am I right? If that is the case and you are running puppet 2.7+ or 3.x I would suggest using a hiera variable and then use that variable to decide if it gets uninstalled or setup. Since the most likely case is to make sure it is uninstalled I would set that as a default and override on the nodes you want it setup. > > Best to get the install list right first then feed via ENC, or? > > Regs, > > Stephen > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.