i used to write a lot of chef and generally like ruby, but i can’t make heads or tails of whatever progress chef is. mostly seems like chef as an oss tool is dead.
anybody got something else they like to configure their mac os systems with?
i used to write a lot of chef and generally like ruby, but i can’t make heads or tails of whatever progress chef is. mostly seems like chef as an oss tool is dead.
anybody got something else they like to configure their mac os systems with?
Here's the wrapper script:
ansible-playbook -i localhost, --connection=local playbook.yml "$@"
You run the script with "-CD" for dry run mode, and without arguments for production mode. And here's the docs for the available modules [0].[0] https://docs.ansible.com/ansible/latest/collections/ansible/...
1) Install homebrew (one-liner, easily googled) 2) Use brew to install chezmoi 3) chezmoi pulls my dotfiles, including my Brewfile 4) Say 'brew bundle' and 90-95% of the software I need is installed
Then I need to set up settings sync in VSCode and Alfred and I'm pretty much done. What few things are missing I can install manually, or update the Brewfile to match.
Although ansible can be used in local machine, but it is design for multiple remote machine. For example, if you want copy a config file to target, you must use some tools like `scp` or do some hacking. And it's much slow than shell script, and the print in stdio is ugly. (because it's design for running in 100 machines in one time.)
Ansible also had a steep learning curve, and redhat did not prepare a good beginner's manual for it. Searching the web there is only the experience of people who have used it for years, each with their own way of writing. There are no best practices for getting started easily.
Maybe I misunderstood, but I use copy (1) for this in Ansible. This is standard, and you shouldn’t need scp?
(1) https://docs.ansible.com/ansible/latest/collections/ansible/...
Modularizing complicates things obviously but for simple uses I don't see how it can be simplified much further.
I’ve thought about using it to set up my machines/machines at work but haven’t gone down that road yet.
And ansible filters are just something else. I get how to use them by now, but compared to some simple ruby's select + map... yeah. In most cases, once we need two of the complex filters, we just introduce a custom one in pure python because that saves sanity points.