So if i use content, and the file doesn't exist, the puppetmaster *will* create it?
On 29 mar, 15:31, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > On 03/29/2011 03:27 PM, tigreton wrote: > > > Thanks for your time Felix. I'm not clear hehe. > > So if i want to create a file and i musn't use content nor source, > > what i must use? Thanks. > > if you want puppet to make sure the file exists, but not care about its > content, use > > file { "/tmp/foo": > ensure => present > > } > > You can also specify owner etc. > > file { "/tmp/foo": > ensure => present, > mode => 644, > owner => "felix", > > } > > If you do specify the content parameter, puppet *will* make sure that > your file never has any other content (the same is true for the source > parameter). > > HTH, > Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.