3 ms·
All these replies saying ansible is the better tool. Highly disagree. Ansible is too procedural. "do this if that otherwise something else. Then that. Then thi
by dastx 7y ago
All these replies saying ansible is the better tool. Highly disagree.
Ansible is too procedural. "do this if that otherwise something else. Then that. Then this other thing". This is very much prone to human error.
As a platform engineer I care that this file exists with this specific content and these specific permissions. I don't care how it happens. Puppet and Chef have the advantage of being declarative and that's 100% better than procedurally telling ansible what to do and what not to do (plus the overheads of every ssh connection that it creates every single time it generates a script). You might as well just write a bash script that does it all for you and execute it over ssh.
- avtar 7y ago> As a platform engineer I care that this file exists with this specific content and these specific permissions. I don't care how it happens. Puppet and Chef have the advantage of being declarative and that's 100% better than procedurally telling ansible what to do and what not to do These examples seem as declarative as Chef and Puppet: https://docs.ansible.com/ansible/latest/modules/file_module.html#examples https://docs.ansible.com/ansible/latest/modules/file_module.... https://docs.ansible.com/ansible/latest/modules/template_module.html#examples https://docs.ansible.com/ansible/latest/modules/template_mod...