coding style - Puppet: How can I wrap a command into two line if >80 characters? -


In the puppet, if the define command is & gt; 80 characters, how can I wrap it in two lines?

  exec {'create_domain': command = & gt; "Some commands exceed 80 characters ............................................... ............... how to do ....... ",}    

This is a kind of ugly, but the last character of a string is if a '\' after a new row, the string is released on the next line. My sample.pp manifest is below:

  class test {exec {'create_domain': command = & gt; "/ Bin / echo 1234567890123456789012345678901234567890123456789012345678901234567890 \ wrapped & gt; /var/tmp/test.txt"; }} Running this with the pawn-mid '{test involved}   

with the puppet' Mapping 'sample.pp on a Ubuntu 11.10 gives the following output 2.7.1

  mrpwan @ pwan-middle: ~ $ puppet sample.pp notice apply: / stage [main] / test / exec [create_domain] / return: successfully executed notice: expired list run 0.10 In seconds,   

and the file catting shows lines wrapped in

  mrpwan @ pwan-center: ~ $ cat / var / tmp / test. Txt 1234567890123456789012345678901234567   

Also see this as a known problem:

Comments