Re:Jerikan: A configuration management system for network teams
by inshadows on Tuesday May 25, 2021 @12:09PM
(#27278632)
> So honest question, if not YAML and JINJA, what would you want?
I've mentioned it. I want functions. I don't care what they do. They may as well construct some data model under the hood. But I want real programming language, not templating YAML.
Re:Jerikan: A configuration management system for network teams
by navaati on Tuesday May 25, 2021 @05:48PM
(#27283144)
Are you suggesting Dahl or Jsonnet ?
Re:Jerikan: A configuration management system for network teams
by inshadows on Wednesday May 26, 2021 @11:23AM
(#27291719)
It doesn't really have to be any such fancy configuration dialect, even though I think they are much better than YAML with Jinja abominations you can find in Ansible or K8s Helm.
All that is needed are functions that can either directly contact the remote or build data model with which the tool will later do its magic.
See e.g. how you define infrastructure with Pulumi. It's just an example. I'm not advocating it. In fact, I have zero experience with it. But the point is, that it looks like imperative programming, but you're actually just building some model. You can employ language that's more functional. It doesn't matter.
Everytime someones mentions idempotence as a selling point of YAML abominations, they're mistaken. :-)
Unrelated but I've been experimenting with having a central KV store to host network state for physical devices (Cisco, Arista, etc) and when the state is updated, the network devices are updated (via a templating engine with SSH or API calls to end devices) but even with that it still takes templates to write the config.