|
|
|
|
|
by dale_glass
1857 days ago
|
|
Ansible does try to do the 'write down the state you want your infrastructure to be in' thing. Eg, - name: "Ensure sshd is started and enabled on boot"
systemd:
state: started
enabled: yes
name: sshd
You're not saying 'enable the sshd service', but 'the desired state for sshd is started and enabled'.But this is not perfect, because it's easy to eventually end up with imperative commands, like "run this script", or "Copy this file". |
|
>With kubernetes, you write down the state you want your infrastructure to be in, and k8s figures out how to get there
My guess is that this devolves to "run this script" or "copy this file" in practice as well. Or it just becomes tautological, i.e. "here's the state I want the system to be in (and that means run this script and then copy this file over here, and don't forget to symlink it over there)". Am I wrong?