The easiest thing to do would to make a subclass called cups::enabled or 
similar and use an override:

class cups::enabled inherits cups{  # The inherits is important

  Package['cups']{
    ensure => 'present,
  }

  Add service and config file resources here

}

The problem with trying to use hiera is it just gets you the package ensure 
parameter. With the override, you can add in the service and config file 
resources as well.

On Thursday, May 16, 2013 6:33:25 PM UTC-6, Stephen Wallace 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?
>
> 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.


Reply via email to