Overlord side modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Right now things like copyfile (that we're going to fix as part of the GSOC projects) are implemetned as "command line modules". What we really want to see are "overlord modules" that automate the task in ways that are programmatically callable. Modules that extend the command line tool can still exist, but this way we have the added ability of being able to use these useful features by things like FuncWeb.

For instance, I should be able to say...

clients = Overlord(....).utility_modules.copyfile(a,b,...)

(Note that in the above, utility_modules only exists as a way to differentiate that I'm not doing a modules.method() direct call.... there may be a better way to express this syntax).

And be able to access the functionality that sends things over chunk by chunk with multiple calls to the minions.

More of this later... though I think this involves establishing an "overlord/overlord_modules" directory and making a few changes to client.py to make this work.

We've also talked about making copyfile a bit more like scp in syntax, so it can do more recursive things and be a bit more like a regular shell command except with multiple targets, etc.

Somewhat OT -- a possible later extension of this is to teach it about templating, so we can use it to deploy /different/ config files on different systems, each slightly different based on their local (or remote?) config files containing template variables they should use ... (which is just one step closer to Func being usable to build a config management system if someone wanted to.)

--Michael

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux