Le mercredi 16 avril 2014 19:42:40 UTC+2, jcbollinger a écrit :
>
>
> To the best of my knowledge, square brackets appearing in ERB template
> text have no special meaning to ERB. They are just copied verbatim to the
> output.
>
> I suspect that you have written something like
>
> file { '/etc/my.cnf'':
> source => template('my.cnf.erb')
> }
>
> where what you want is
>
> file { '/etc/my.cnf'':
> content => template('my.cnf.erb')
> }
>
> The distinction is quite important: the 'source' parameter is expected to
> specify a URL from which the agent get retrieve the desired file content,
> whereas the 'content' property gives the content itself. (The two are
> mutually exclusive.)
>
>
>
You're right about the fact that I've used "source" instead of "content" !
Thanks for your help.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/a9affa58-42b4-43e5-bd45-fe50698f4ba6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.