-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> I'm no type/provider expert, but you should try to base your code on the
> ParsedFile system. This system does all the file creation/parsing for
> you. And sysctl.conf is a simple format, so it should be easily to use
> ParsedFile for this.
> 
> There are several providers using the ParsedFile. I even think the
> maillist provider is one of the simplest example.
> 
> Using ParsedFile has plenty of advantages (like prefetching which your
> prodiver does not), but since you need to call some commands after
> parsing, YMMV.

The sysctl provider here uses parsedfile and is known to work on linux
and openbsd systems:
http://git.puppet.immerda.ch/?p=module-sysctl.git;a=tree;f=lib/puppet;h=866031d317ea6e2441fbd6f3a3b3776d2ec74c37;hb=985da1c7cb5513afefe9484b0f9c51f144163ed0

unfortunately also no tests.

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwjoTAACgkQbwltcAfKi39aVQCeL72n1c/RZYU+1pNE2WIBkfFh
+w4An3eviTePX9Z7Ov7Aoo/d5p6H2Z4O
=JDqV
-----END PGP SIGNATURE-----

-- 
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