by devn0ll · 8y ago · 0 comments
Why add goss to the equation?
can all be done with straight Ansible as well.
I'm just having a hard time understanding the real added value to a goss / ansible combo.
Plus: If you do this after installing with ansible. It's basically a check right? Like: Nagios or other monitoring.
I'd rather that just use THAT and spend time in creating checks in those systems instead of spending time in goss?
I'm already declaring things with Ansible. Unless I got the syntax wrong ansible will finish a playbook and the server will be as I ordered ansible to make it.
So why add another check?
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?
Oh no defintely not, no I mean you test and build your ansible and cluster stuff in Development / Acceptance. We create our monitoring checks there as well. And when all that is done and "green": we go to production.
BTW. Testing your cluster is something you do in dev/acc before you go to prod. And Ansible / monitoring already shows you problems in those pre-production stages.
What added benefit is there for Goss in that scenario?