Hi,
I did like this using file_line resource
*file_line { 'replace a line to /home/infauser/.bash_profile': path =>
'/home/infauser/.bash_profile', line => 'export
INFA_CODEPAGENAME=UTF-8', #match => '^# export
INFA_CODEPAGENAME=UTF-8.*',*
*But it is giving me an error:*
*Error: Failed to apply catalog: Validation of File_line[replace a line to
/home/infauser/.bash_profile] failed: When providing a 'match' parameter,
the value must be a regex that matches against the value of your 'line'
parameter at
/etc/puppetlabs/puppet/environments/development/modules/powercenter/manifests/init.pp:75Wrapped
exception:When providing a 'match' parameter, the value must be a regex
that matches against the value of your 'line' parameter*
*It is not adding # to the starting of the line.*
*Please help me*
On Wednesday, July 23, 2014 5:05:33 PM UTC-4, Spencer Krum wrote:
> 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] <javascript:>> 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] <javascript:>.
>> 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/e659874b-89a9-4a6e-8fbc-7dade0aacfba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.