Maxim Ianoglo wrote:

I am trying to make a simple text line type that will work like:
http://projects.puppetlabs.com/projects/puppet/wiki/Simple_Text_Patterns
But without using external programs.
Also I wanted to add the ability to to search the line by regex.

I thought that using ParsedFile this would be easier, but seems that I
will have to write it using simple puppet type and provider.

I have written a couple such types.  They are available at
http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git in case
you want to look at or steal them.  (Since I didn't foresee
any reason to ever have multiple providers for a text file
editing type, the implementation isn't split into a base
type with a provider, but is just a "simple" type.)


        /Bellman

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to