Re: [Puppet Users] multi-line content= construct for puppet resource file command

2013-03-12 Thread Robert Citek
Just preference and consistency. We've been using puppet as a substitute for shell commands that use the 'command [options] arguments ... ' pattern and 'puppet resource ...' matches that pattern nicely. But if by using here-documents we can match the pattern pretty closely and we gain the additi

Re: [Puppet Users] multi-line content= construct for puppet resource file command

2013-03-12 Thread Felix Frank
Hi, at first glance, it doesn't seem to be possible. I had never thought of using puppet resource in this way. Is there a reason why you prefer it over puppet apply? On 03/06/2013 07:49 AM, Robert Citek wrote: > Hello all, > > How does one enter multi-line content using 'puppet resource file ..

[Puppet Users] multi-line content= construct for puppet resource file command

2013-03-05 Thread Robert Citek
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.t