Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- So normally you might write some ruby that did this:
- generate_etc_update_pp.rb
- for name, md5, status in cf.config.conf
- GentooConfigFile { $name:
- md5 => md5,
- status => $status,
- }
- Right? So basically exactly like cf.config.pl. We would write some ruby that in turn writes a few hundred puppet resources and then we implement GentooConfigFile to do the needful (accept, reject, merge, etc..)
- I'm saying that that is silly and we should avoid it. We can avoid it because unlike cfengine *it is really easy to write full ruby extension in puppet*.
- So my proposal is instead of the above, we simply have:
- GentooConfigFile { /path/to/cf.config.pl }
- That it. No hundreds of resources, or anything like that. The actual type we (you?) are writing can auto-acquire the file resource for /path/to/cf.config.pl, open the file, parse it, and then take action on the contents.
- -A
Add Comment
Please, Sign In to add comment