Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using spire as a library #123

Open
nivekuil opened this issue Nov 16, 2020 · 0 comments
Open

Using spire as a library #123

nivekuil opened this issue Nov 16, 2020 · 0 comments
Labels
ideas Blue sky thinking

Comments

@nivekuil
Copy link

Hi, I've been thinking about a fun devopsy thing to make with Clojure and was excited to find Spire. I thought I'd reach out about a potential use case.

Here's the idea: a host dashboard. Each host has some information, attribute/value pairs, attached to it.

For example, we might want to keep track of whether a host is a docker swarm manager or worker node. The procedure could look like:

  1. SSH into the host
  2. Run some script that returns the swarm node status
  3. Store that information somewhere and display it on the dashboard

So, establish a connection, run a number of probes, and display the results of those probes. Maybe that process can be done periodically, orchestrated by Clara rules, and interesting UI stuff with DataScript, all this information being essentially EAV tuples.

I wonder if the module abstraction that spire has going on is extensible enough to double as probes. I think they're declarative, so a probe could look a lot like a dry run of a module? Then the dashboard could both be informative and powerful, both displaying the state of hosts and being able to run those idempotent modules to mutate it. Is spire suitable to be used as a library?

Anyway, there's no rush on my part to start building this, there's just something appealing about applying the simplicity and practicality of the Clojure ecosystem to the messy world of ops, and I think you have something nice going on here.

@retrogradeorbit retrogradeorbit added the ideas Blue sky thinking label Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ideas Blue sky thinking
Projects
None yet
Development

No branches or pull requests

2 participants