how to comment and uncomment lines in a file using puppet

182 views
Skip to first unread message

Supriya Uppalapati

unread,
Jul 23, 2014, 11:24:04 AM7/23/14
to puppet...@googlegroups.com
Hi,
 
I am trying the uncomment the lines in a file using augeas in puppet. But it is not commenting those lines.
 
Here is the code which I have writen,
 
 
 
augeas { "bash_profile":
    context => "/home/infauser/.bash_profile",
    changes => [
     "set #comment 'export INFA_CODEPAGENAME=UTF-8'",
      "set #comment 'export INFA_HOME=/opt/apps/Informatica/9.5.1'",
       "set #comment 'export INFA_DOMAINS_FILE=/opt/apps/Informatica/9.5.1'",
],
But it is not commenting the lines.
 
 
Please help me
Reply all
Reply to author
Forward
0 new messages