Supriya Uppalapati
2014-Jul-23 15:24 UTC
[Puppet Users] how to comment and uncomment lines in a file using puppet
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* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4ce4b07c-a6a5-44f0-9a83-a30750a2a29a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.