Displaying 1 result from an estimated 1 matches for "journeryman".
2009 Jun 18
7
Testing if a resource is already defined
Hi gang,
Is it possible to test if a particular resource has already been
defined? I''d like to do something like this:
if !Host["$fqdn"] {
host {"$fqdn": ip => "$ipaddress_eth0" }
}
Essentially, test to see if there is no Host resource defined for the
current server and if not, add a host entry for itself using the IP
address of eth0.
Possible?