Il giorno mercoledì 6 marzo 2013 07:49:44 UTC+1, Robert Citek ha scritto:
>
> Hello all, 
>
> How does one enter multi-line content using 'puppet resource file ...' 
> at the command line? 
>
> For example, I am trying to create a file called /tmp/hw.txt with two 
> lines of content: 
>
> $ cat /tmp/hw.txt 
> hello 
> world 
>
> This does not work: 
>
> $ puppet resource file hello_world \ 
>   path=/tmp/hw.txt \ 
>   ensure=file \ 
>   content="hello\nworld\n" 
>

one of the following will work (or either both):
content => inline_template('<%= "hello" + "\n" + "world" %>'),
content => inline_template('<%= "hello\nworld" %>'),
 

-- 
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/e27dd8a1-0442-4c47-af8b-8d00c0295979%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to