On 07/24/14 17:17, Supriya Uppalapati wrote:
>  
> 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.*',*

Your "match" regexp must match the line *both* before *and* after
the change.

I.e.,

    match => 'export INFA_CODEPAGENAME=UTF-8',

will probably work. If .bash_profile doesn't have that line yet, it
is added.

HTH,
        Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: [email protected]

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/lqsbns%24i96%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to