Re: [Puppet Users] a question about ensure file exists

2011-12-20 Thread Jeffrey Watts
Any reason you can't do the following? file { "/aaa/bbb/ccc" ensure => 'directory', } Jeffrey. On Thu, Dec 15, 2011 at 9:43 PM, chateau Xiao wrote: > hi all: > if we need to ensure a file exist in a folder that not yet been created. > puppet will simplely report error. > for example: > >

[Puppet Users] a question about ensure file exists

2011-12-20 Thread chateau Xiao
hi all: if we need to ensure a file exist in a folder that not yet been created. puppet will simplely report error. for example: file { "/aaa/bbb/ccc/aaa" ensure => 'present'; } if directory ccc not yet been created, puppet client excute will get an error message. Does puppet have any fu