|
|
|
|
|
by nineteen999
2825 days ago
|
|
Belts and braces approach. I use Ansible but I also use testinfra (which is similar to serverspec and I suppose goss as well) to validate things that are not explicitly covered by Ansible, and even in some cases, some things that are. The tests can be run independently at any later date, helping to ensure that admins haven't messed with important files, upgraded random RPM's or that the servers haven't suffered any other type of configuration drift. But then I build/run emergency services infrastructure
with 99.999% availability targets. Once you are writing tests alongside your Ansible playbooks and committing them to source control, it doesn't really take a lot longer and eventually you have a test suite you can run across your entire environment at a moments notice. |
|
We all run puppet / ansible multiple times a day on our infra right? Checking for config drift.
I'm used to a banking sector where we have extremely stringent demands. And still I see no added value for something like infratest/goss.
Seriously: running ansible on your infra checking for config drift.. is that not exactly the same as running goss? Plus: Ansible returns changes to what they should be at the same time?