October 2011
Intermediate to advanced
300 pages
5h 51m
English
Tag, you're it! Sometimes one Puppet class needs to know about another— or, at least, to know whether or not it's present. For example, a class that manages the firewall may need to know whether the node is a web server.
Puppet's tagged function will tell you whether a named class or resource is present in the catalog for this node. You can also apply arbitrary tags to a node or class and check for the presence of these tags.
node bitfield_server { include bitfield } node cookbook inherits bitfield_server { if tagged("cookbook") { notify { ...Read now
Unlock full access