One word: Hiera. (ENCs also accomplish this)
Here's a good overview of the choices available:
https://puppetlabs.com/blog/the-problem-with-separating-data-from-puppet-code/


On Fri, Apr 5, 2013 at 8:19 AM, <[email protected]> wrote:

> Hi Guys !!! Just joined :)
>
> I have a question regarding the association of recipes to nodes .
>
> From what I understand , the site.pp file is where we associate recipes to
> nodes that is tell the Puppet Master what to do for a particular node .
>
> Now we have a requirement where we need to install packages based on user
> choices , on nodes .
>
> So what we are doing is , ssh ing into the Puppet Master and changing the
> sites.pp file like below ( we are doing it programmaticaly using Java ) :-
>
>
> node ournode { package 'our_package' :
> name => 'our_package' ,
> ensure => installed ,
>
> }
>
> }
>
>
> But this seems to be a very hackish way of doing this :)
>
> Is there a better way ?
>
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
GVoice: 707.410.0371
LinkedIn: http://www.linkedin.com/in/brendanobra

-- 
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 [email protected].
To post to this group, send email to [email protected].
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