Hi,

On 03/25/2011 11:46 AM, tigreton wrote:
> I have this in my /manifests/site.pp
> Do i need to send you more files? I don't think so...
> class sudo {
> file { "/tmp/prueba.txt":
>                 owner => root,
>                 group => root,
>                 mode => 440,
>                 ensure => present,
>                 content => "esto es una prueba",
>                 source => "puppet://groening.dibujos.local/files/etc/
> prueba.txt"
>         }
> }
> node default {
>         include sudo
> }
> 
> 
> I only want for test is that i can create a file named prueba.txt in
> tmp. I saw some more examples, but they are obsoletes.
> For example, i added source too... And friends said me that i must use
> the content => "something" too...
> How do i create a simple file? Thanks. Jorge.

you've been given confusing information.

"source" and "content" are mutually exclusive. Use either source or
content. If you only need to make sure the file is there and has the
given owner/mode, don't use content nor source.

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