James

Results 416 comments of James

Other places to look for ideas: https://github.com/chef/ohai https://github.com/DataDog/gohai

https://docs.saltstack.com/en/latest/topics/grains/#examples-of-grains (no idea where the list of built-in "grains" comes from though... some are found here: https://github.com/saltstack/salt/blob/develop/salt/grains/core.py)

* a function to get the available versions of a particular package: eg: ```$versions = pkg_versions("cowsay") # returns an array of string versions for cowsay``` * a function to get...

more ideas: `exec("some_command")` // produces a str (maybe we want a variant that writes on every line) `is_converged() bool` or `is_converged(time) bool` to report converged state of myself.

think of better names for these... readfiledeploy("dir/template.whatever") # reads a file from the deploy dir relative to the code we're calling readfilesdeploy("img.png") # same but from the files/ directory maybe...

Here's a whole bunch of other data sources... Looks like fancy facter basically: https://osquery.io/schema/ Who knows if they support events or not though.

> This project is psutil in go Great idea for more possible functions... Who wants to help add event-driven versions in mgmt! =D

Someone with more knowledge around maths and closed-loop systems might want to implement some sort of generalized PID function, eg: https://en.wikipedia.org/wiki/PID_controller Hopefully we'd be able to combine that function with...

Design note: I was thinking about how the `Watch` part of this resource should work. Here's one idea: Watch should open up a connection to our local etcd store on...

(I'm working on this) More notes: * Since autogrouping isn't necessary, the code can be simplified to only need to run one SSH connection per resource. No need for the...