elasticsearch-formula
elasticsearch-formula copied to clipboard
Controlling Elasticsearch cluster config state via Salt
So this has been something I've been thinking about for a while. I'm opening this issue to both note this down and maybe start a discussion if anyone else could be interested in a feature like this.
So what's this about?
Say I want to set cluster.routing.allocation.awareness
when spinning up a new cluster. Maybe I want to inject a default template. Or set any other thing available via the Elasticsearch API in a managed way.
Great thing is that YAML defined in pillar translates easily to JSON and vice versa.
But is Saltstack able to do this in an easy way? I guess we're looking at something like salt.utils.http (info here: https://docs.saltstack.com/en/latest/topics/tutorials/http.html, https://www.youtube.com/watch?v=m9AQxcSDkaE)
Thoughts?