You could likely use the file_line resource from the stdlib module to do
this.


On Wed, Jul 23, 2014 at 11:51 AM, Supriya Uppalapati <
[email protected]> wrote:

>
> Other recipients:
> 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 'ex
> 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 Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/07d6bab6-2143-4970-8d70-d67fde9e3bd7%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/07d6bab6-2143-4970-8d70-d67fde9e3bd7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Spencer Krum
(619)-980-7820

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CADt6FWO%2Bm2UVyTiOabmigi30G6LAJKD8rcSZPXQ3KrBDn2DVag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to