by INTPenis · 7y ago · 0 comments
I've never used Chef myself but I have noticed some message board posts lately claiming it's dead in the water and Ansible is the victor.
I've used Ansible since it came out, came straight from Puppet, so I'm biased. But I don't care what you use, as long as it works.
Chef is just no longer going to provide them with a paid support contract.
Those willing and able to do such support will find themselves with a very narrowed set of non-ICE clients.
There's a reason moral suasion and taboo are such effective social management engines.
I'm still at the "shell scripts are enough for everybody" camp, but Ansible is looking stable enough to use.
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.
These examples seem as declarative as Chef and Puppet:
https://docs.ansible.com/ansible/latest/modules/file_module....
https://docs.ansible.com/ansible/latest/modules/template_mod...
On the same image it sometimes succeeded and sometimes failed. This was happening on Amazon Linux 2, and basically once in a while yum database got corrupted. I'm suspecting there was a conflict between yum run by Amazon Linux 2 on boot, and ansible didn't respect locks acquired by yum?
2. If there is nobody willing to adopt a cluster using conf mgmt that they do not prefer.
We had an admin that set up an ELK cluster with cfengine. All of the other admins do not claim to understand it, and hesitate to maintain it, update it, make changes to it, and otherwise perform their job duties. One of the admins is partial to Chef, and the other wants to maintain the ELK cluster with Kubernetes. Only problem is neither has done so, and they have made little progress. I hope to see that change.
It can be, depending on how complex your environment is and the availability of people that understand it. Chef doesn't make this easy by storing so much "state" (nodes, environment, databags, etc).
But at the end of the day, these are just scripts. You can reverse-engineer the environment and replicate in Ansible or what have you.
One red flag is, if this process is found to be too difficult(as opposed to just time-consuming), then you have a very incomplete understanding of your system. That's dangerous.