[Pkg-puppet-devel] Bug#524812: exec type, creates directive does not create

Jayen Ashar jayen at science.unsw.edu.au
Mon Apr 20 06:30:35 UTC 2009


thank you for the clarification.  then i this bug is a documentation 
ambiguity.  i thought the doc was saying puppet creates this file, and 
so it would be useful if you wanted to execute something exactly once on 
every machine in your puppet pool.

Tim Stoop wrote:
> I'm not a maintainer, but thought I'd help here anyway:
> 
> Op 20-apr-2009, om 6:26 heeft Jayen Ashar het volgende geschreven:
>>   exec {
>>     "mail jayen at science.unsw.edu.au -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
> 
> Correct, like the manual says: "A file that *this*command* creates."[0] 
> (emphasis added by me). You'll need to make sure that the command you 
> execute creates the file. For example by adding "&& touch 
> /var/tmp/partition_usage_20090420" at the end of the command.
> 
> [0] http://reductivelabs.com/trac/puppet/wiki/TypeReference#creates
> 
> --Kind regards,
> Met vriendelijke groet,
> 
> Tim Stoop
> 

-- 
Jayen Ashar 	
Technical Officer	
Computing Center
School of Mathematics and Statistics
M029, Red Center
The University of New South Wales SYDNEY NSW 2052
Ph: + 61 (2) 93857016
Fax: + 61 (2) 93857192
CRICOS provider code: 00098G





More information about the Pkg-puppet-devel mailing list