Hi,
I'm curious how people handle the following situation in their node
definitions- you have a default configuration of a service that you want
on all of your servers except for the servers that have a more specific
configuration. For example, I want all of my servers to include the
sendmail::satellite class, except for one server where I include the
sendmail::relay class. I already had a node definition that was at the
bottom of the inheritance hierarchy for all my nodes, so adding a test
like the one below seemed like a straightforward way of accomplishing this.
node basenode {
if tagged(sendmail::relay) {
crit("$hostname is a sendmail relay")
} else {
crit("$hostname is NOT a sendmail relay")
include sendmail::satellite
}
}
node foo inherits basenode {
include sendmail::relay
}
In Puppet 0.24.8, this results in "(Scope(Node[basenode])) foo is NOT a
sendmail relay"
--
Brian Pitts
Systems Administrator | EuPathDB Bioinformatics Resource Center
706-542-1447 | [email protected] | http://eupathdb.org
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.