Jayen Ashar <[email protected]> writes: > exec { > "mail [email protected] -s \"kB available on /: `df / | tail -n 1 > | sed -r 's/ +/ /g' | cut -f4` - `hostname`\"": > path => ["/bin", "/sbin", "/usr/bin", "/usr/sbin"], > creates => "/var/tmp/partition_usage_20090420"; > } > > does not create /var/tmp/partition_usage_20090420 as advertised and > executes the command every time puppet runs
"creates" doesn't mean quite what you think it means. The creates attribute tells Puppet that your command will create that file, and hence the command should not be run if that file already exists. It doesn't tell Puppet to create the file; your command has to do that. -- Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

