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