Supriya Uppalapati
2014-Jul-24 15:17 UTC
[Puppet Users] not able to comment line using file_line resource
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*
--
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/fa0e5bc7-854b-4f5a-8e1b-67b8b654513c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.