sensu / sensu-ansible

An Ansible role to deploy a fully dynamic Sensu stack!
https://ansible-sensu.readthedocs.io
MIT License
126 stars 96 forks source link

Feature/add travis automated tests and role sync 114 #129

Closed jaredledvina closed 6 years ago

jaredledvina commented 6 years ago

This PR closes https://github.com/sensu/sensu-ansible/issues/114 and supersedes https://github.com/sensu/sensu-ansible/pull/115/ with some cleaner commits.

Changes:

  1. Build out base TravisCI config to make use of Jeff Geerling's ansible role testing shim: https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/
  2. Configure tests/test.yml to actually work on deploying this role against CentOS 7, Ubuntu 14.04, Ubuntu 16.04, Debian 8 and Debian 9. I've purposely not added CentOS 6, as RabbitMQ doesn't support them any longer and I hit tons of issues attempting to get it to work.
  3. Fixup an syntax issue in the uchiwa.json config which results in the following when starting:
    {"timestamp":"2018-01-29T12:41:38.218583372Z","level":"fatal","message":"Error decoding file /etc/sensu/uchiwa.json: json: cannot unmarshal string into Go struct field SensuConfig.Ssl of type bool"}
  4. Update Debian/Ubuntu to ensure that we've got an updated apt cache when trying to install apt-https-transport (resulted in build failures).
  5. Add the TravisCI build badge to the README.
mbbroberg commented 6 years ago

👏👏👏