[chef] LWRP, append text to file only if it doesnt comtain it


Chronological Thread 
  • From: Medya < >
  • To:
  • Subject: [chef] LWRP, append text to file only if it doesnt comtain it
  • Date: Tue, 10 Mar 2015 12:18:23 -0500

is there any LWRP way to do append a text to a file if it does NOT contain it ?

for exmaple

add PEERDNS=no to this file
/etc/sysconfig/network-scripts/ifcfg-eth0

only if it is not there



Archive powered by MHonArc 2.6.16.

§