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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to