file.line Command Sperate sls files

6 views
Skip to first unread message

STharp

unread,
Apr 27, 2017, 11:24:15 AM4/27/17
to Salt-users
I have to make 25 edits to a file and the file.line command does exactly what I want. Here is my policy my question is do I ahve to so 25 sls files or is there another way that I ahve not yet discovered. 

 /etc/sysconfig/SuSEfirewall2:
   file.line:
     - after: '0.0.0.0/0,tcp,427'
     - content: '10.38.0.0/16,tcp,8443'
     - mode: insert
             10.1.0.0/16,tcp,8443

Reply all
Reply to author
Forward
0 new messages