4 ms·
give me this for mac os please. my home-rolled dotfiles repo is ok, but id really love some config management system that’s not ansible that i could use to boot
by wkdneidbwf 4y ago
give me this for mac os please. my home-rolled dotfiles repo is ok, but id really love some config management system that’s not ansible that i could use to bootstrap my workstations.
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?
- thenipper 4y agoPyinfra supports home brew: https://docs.pyinfra.com/en/latest/operations/brew.html https://docs.pyinfra.com/en/latest/operations/brew.html I’ve thought about using it to set up my machines/machines at work but haven’t gone down that road yet.
- okasaki 4y agoWhat's wrong with ansible?
- candiddevmike 4y agoSame, I looked all over the project and couldn't find a reason for using it vs Ansible.
- 1MachineElf 4y agoDepending on your needs, one advantage over Ansible is lack of Python dependency.
- nanozuki 4y agoToo heavy, too complex and too slow. 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.
- lmz 4y agoAnsible has a steep learning curve? The easiest thing to do is just a list of steps (playbook) and I'm sure that is in the getting started docs. Modularizing complicates things obviously but for simple uses I don't see how it can be simplified much further.
- allarm 4y agoYes, it was harder to master than terraform and even k8s. Their documentation was the reason, in most cases.
- yunohn 4y ago> if you want copy a config file to target, you must use some tools like `scp` or do some hacking 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/builtin/copy_module.html https://docs.ansible.com/ansible/latest/collections/ansible/...
- CGamesPlay 4y agoAnsible is a little heavyweight for what you want, but if you wrap it in a script and only use the built-in modules, it's probably got everything you need. 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/builtin/index.html#modules https://docs.ansible.com/ansible/latest/collections/ansible/...
- geerlingguy 4y agoThis is how I set up my Mac as well; just a local connection. Sets up out of box Mac in about 15 minutes and I can keep my two Mac's configs in perfect sync: https://github.com/geerlingguy/mac-dev-playbook https://github.com/geerlingguy/mac-dev-playbook
- grepLeigh 4y agoWhat didn't you like about Ansible? Here's an example of how I use an Ansible playbook to manage my own dotfiles: https://github.com/leigh-johnson/dotfiles/blob/master/install.yml https://github.com/leigh-johnson/dotfiles/blob/master/instal...
- yuppie_scum 4y agoMay I recommend: https://github.com/lra/mackup https://github.com/lra/mackup
- datalopers 4y agoansible just runs commands over ssh. can’t get more simple.
- encryptluks2 4y agoExcept it is bloated and slow, and primarily only maintained by Red Hat where they don't fix bugs for extended periods of time. Their loops and register methods are extremely slow taking 30 seconds to delete a group of files and folders which only takes a second in Bash.
- datalopers 4y agoBloated, slow, and unmaintained. You’ve just describe the three core tenets of python packages.
- colordrops 4y agoAlso the deployments decay and break over time
- deleted 4y ago[deleted]
- encryptluks2 4y agoVery true. I really wish Terraform would have attempted to solve automation on the scale of Ansible, or another organization would have committed to a replacement in Go or Rust. Unfortunately Ansible is still the best that we have currently.
- softjobs 4y agoThere's https://github.com/purpleidea/mgmt https://github.com/purpleidea/mgmt, written in Go.
- encryptluks2 4y ago
- theshrike79 4y agoI use chezmoi + homebrew. 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.
- wkdneidbwf 4y agoyeah, my home rolled stuff does the same with the Brewfile. chezmoi looks great though—i have a bit of cross-platform (mac os and linux) stuff happening too, so this looks really great to make those bits better. thanks!