Hi,

I want to write a type/provider for Sun Grid Engine/Open
Grid Scheduler/etc. configuration.

The configuration is (for the most part) managed by a pair
of commands, for example "qconf -sc" will show ("s") the
"complex" configuration, "qconf -mc" will invoke an editor
to modify ("m") it, and for some components "qconf -Mc
$file" can be called to replace the current configuration
with $file.  The configuration looks somewhat like:

| #name               shortcut   type        relop requestable consumable 
default  urgency
| 
#----------------------------------------------------------------------------------------
| arch                a          RESTRING    ==    YES         NO         NONE  
   0
| calendar            c          RESTRING    ==    YES         NO         NONE  
   0
| cpu                 cpu        DOUBLE      >=    YES         NO         0     
   0
| [...]

This is strikingly similar to crontab where "crontab -l"
shows the configuration and "crontab" changes it, so I
looked at type/cron.rb and provider/cron/crontab.rb for in-
spiration, but the code is rather complex due to the subject
matter :-).

I searched the forge for Puppet::Provider::ParsedFile, but
the only match was
https://forge.puppetlabs.com/adrien/filemapper which explic-
itly recommends against using the former and advertises it-
self as a (better) alternative.

Is there a (simpler) example than crontab of how to use
Puppet::Provider::ParsedFile with a program as backend?

Tim

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/87pp31ygvj.fsf%40passepartout.tim-landscheidt.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to