I tried a definition like the following (leaving out the non-important bits):
define configfile(. . ., $notify = undef) {
file { $name:
. . .
notify => $notify,
. . .
}
}
However, when I haven't given a notify in my usage of this definition, I get the error:
err: Could not create /etc/phppgadmin/config.inc.php: Parameter notify failed: Relationships must be resource references at /srv/puppet/prod/common/manifests/functions.pp:24
warning: Not using cache on failed catalog
warning: Configuration could not be instantiated: Parameter notify failed: Relationships must be resource references at /srv/puppet/prod/common/manifests/functions.pp:24
Any tips on how to do this correctly? Or is this something that might need some enhancement?