3 ms·
This looks really promising. I've been wanting a very lightweight solution for this which runs on a single host (no need for another host just to run the script
by simonw 6y ago
This looks really promising. I've been wanting a very lightweight solution for this which runs on a single host (no need for another host just to run the scripts) and pulls its configuration from a GitHub repository periodically.
I ended up writing my own - and hating that I had to do that - because I couldn't figure out how to use any of the existing options. Their documentation all seems to assume multiple hosts and a separate machine that you run the scripts on.
"Each host periodically fetches the latest version of the inventory to see what roles should it be performing" - that's exactly what I want.
- miked85 6y ago> which runs on a single host (no need for another host just to run the scripts) This isn't a limitation of Ansible, you can run playbooks against localhost.
- zhengyi13 6y agoTrue, but I think OP's point at least in part was that an awful lot of the tutorials out there start with the assumption that the audience are sysads and SREs who want to manage a fleet.
- simonw 6y agoYes, exactly. I could tell that Ansible could do it but so much of the documentation assumed you would be using it with a fleet that I eventually gave up figuring it out.
- VWWHFSfQ 6y agoSounds like you're looking for ansible-pull
- atsaloli 6y agoCFEngine is the most lightweight solution I have seen (in terms of resource utilization). The agent is a small C binary. It’s fast! You can set it up to pull its configuration from git.