You might want to check out Augeas.  It might be easier to use.

I've seen a simple define that does that, but I can't find it.  It had a grep 
statement in unless, and used sed to make the change.  A much more complicated 
example can be found at 
http://projects.puppetlabs.com/projects/puppet/wiki/Simple_Text_Patterns

On May 21, 2010, at 1:22 PM, Marley Bacelar wrote:

> I need to replace some text in a file... there is some type, that i can pass 
> a value and to be replace and the destination file? or anyone here have some 
> class who does that?
> 
> -- 
> Marley Bacelar
> Project Fedora Ambassador
> VCP, VSP. VTSP., ITILF, IBM 000-076, IBM 000-330, IBM 000-331
> marleybace...@gmail.com
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to