Closed fairchild closed 15 years ago
Agreed. Should be relatively easy. I dig the votes_required syntax too
For people managing multiple pools, we shouldn't load much (if anything) from ~/.poolparty. They should be relative to clouds.rb (so maybe a monitors directory adjacent to clouds.rb) or expressed inside clouds.rb itself.
I think loading the monitors/ directory in the same dir as clouds.rb sounds like a good idea. We have a similar issue with plugins. Should we adopt a similar layout for plugins/ Or, maybe we should just autoload everything in a poolparty/ dir in the same dir as clouds.rb.
After writing the above, I think I would like, clouds.rb monitors/ plugins/ chef/
All being loaded by default. What do you guys think?
This is in place
User definable monitors for cloud expansion and contraction. for example:
class MyLoadMonitor def run %x[uptime].split(/\s+/)[-1].to_f end end
The custome monitors could be loaded from the users .poolparty/monitors directory Then in the clouds.rb we could have something like