The recommended puppet approach is the role/profile/module pattern.

Here's the blog post that defined this:
http://www.craigdunn.org/2012/05/239/

R.




On 5 June 2014 00:40, Felix Frank <[email protected]> wrote:

> On 06/05/2014 01:28 AM, Stuart Cracraft wrote:
> > I would assume from basic class syntax one could just do a::b::c etc
> > to pull stuff in from
> > subclassing and roll it up to the equivalent of chef roles.
>
> Hi,
>
> I suggest that you would be Doing It Wrong then.
>
> The author of the blogpost you linked has apparently inherited a Puppet
> code base that follows a lot of questionable practices. Or perhaps he
> was just confused by the node concepts that are absent from chef. What
> he failed to realize is that a node in Puppet is exactly what he
> describes as a "node in chef, unlike in Puppet".
>
> Basically, what you want to do is the same he describes for chef.
>
> node my.fqdn.org {
>   include role::webserver
> }
>
> class role::webserver {
>   include profile::base
>   include profile::webserver
> }
>
> class profile::webserver {
>   include profile::apache
>   include profile::openssl
>   ...
> }
>
> It is unclear why the author is so obsessed with nodes - the primary
> form of expressing such relationships is indeed the class.
>
> HTH,
> Felix
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/538FAE5B.5060901%40Alumni.TU-Berlin.de
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJGKfwBTA_TJQwr9AYofdJjxFG65SFy0wKeLjxJBcaewDmLPgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to