All Projects → jaredledvina → sensu-go-ansible

jaredledvina / sensu-go-ansible

Licence: MIT license
Ansible role to deploy and manage Sensu Go

Programming Languages

python
139335 projects - #7 most used programming language
ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to sensu-go-ansible

sensu-alerta-handler
Use Alerta as a dashboard for Sensu
Stars: ✭ 21 (-19.23%)
Mutual labels:  sensu, sensu-go
Paasta
An open, distributed platform as a service
Stars: ✭ 1,569 (+5934.62%)
Mutual labels:  sensu
Goss
Quick and Easy server testing/validation
Stars: ✭ 4,550 (+17400%)
Mutual labels:  sensu
uchiwa-web
Uchiwa is a simple yet effective open-source dashboard for the Sensu monitoring framework.
Stars: ✭ 17 (-34.62%)
Mutual labels:  sensu
sensu-plugins-http
This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
Stars: ✭ 31 (+19.23%)
Mutual labels:  sensu
sensu-wrapper
A wrapper to send shell command results to sensu
Stars: ✭ 21 (-19.23%)
Mutual labels:  sensu
ohgi
扇: Sensu command-line tool by Golang
Stars: ✭ 31 (+19.23%)
Mutual labels:  sensu
sensu-plugins-aws
This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.
Stars: ✭ 79 (+203.85%)
Mutual labels:  sensu
sensu-go-ansible
Official Ansible module for Sensu Go
Stars: ✭ 30 (+15.38%)
Mutual labels:  sensu
sensu-influxdb-handler
Sensu Go InfluxDB Metrics Handler
Stars: ✭ 14 (-46.15%)
Mutual labels:  sensu
sensu-plugin-python
A framework for writing Sensu plugins & handlers with Python.
Stars: ✭ 66 (+153.85%)
Mutual labels:  sensu
grafana-sensu-go-datasource
A Grafana data source plugin for querying the Sensu Go API
Stars: ✭ 21 (-19.23%)
Mutual labels:  sensu-go

sensu-go-ansible

Build Status GitHub release License FOSSA Status

This role allows for the deployment and management of Sensu Go.

The official Sensu supported Ansible Collection can be found here: https://github.com/sensu/sensu-go-ansible

If you'd like to contribute, please review CONTRIBUTING.md and open an issue to discuss your idea.

Requirements

Role Variables

See defaults/main.yml for everything that's configurable. If any of the options are unclear, please file an issue!

Please note that unless you've configured hash_behaviour to merge configuring any of the hash variables will override the entire default variable.

Most variables expose an _overrides: {} variable that is merged automatically in this role for selectively updating each variable. It's strongly recommended that the _overrides variable be used.

Dependencies

None

Example Playbook

The following example will configure the host in the hostgroup sensu-backend-server to be configured with both sensu-backend and sensu-agent. This host will also get the sensuctl CLI tool for further management of Sensu Go.

The hosts in sensu-agent-severs will only get the sensu-agent install and will have the sensu-agent's configuration option for backend-url overriden to ws://sensu-backend-server:8081.

For more information on the availible configuration options, checkout the upstream docs for sensu-backend and sensu-agent.

---
-
  hosts: sensu-backend-server
  become: yes
  roles:
    - role: jaredledvina.sensu_go_ansible
-
  hosts: sensu-agent-severs
  roles:
    - role: jaredledvina.sensu_go_ansible
      sensu_go_components:
        - agent
      sensu_go_configs_override:
        agent:
          config:
            backend-url:
              - ws://sensu-backend-server:8081

Testing

This Ansible role is automatically tested via TravisCI on every commit. We specifically test using the version of Ansible and python declared in the Pipefile

The following Operating Systems are automatically tested:

Custom Modules

This role includes the following custom modules:

At this time, these modules are in preview status and may be subject to breaking changes. However, effort will be put in to attempt to not break the them, if possible. Please ensure you review the CHANGELOG when upgrading.

As described in the upstream documentation, to use the included custom modules, you must first include this role prior to calling the modules. After this role has been included once, they will be availble to subsequent plays/roles.

Currently, documentation for each module is in the DOCUMENTATION block in each modules source. Once the modules stabalized, they may be PR'ed upstream to the Ansible project.

Caveats

If you are using this role with Amazon Linux or Amazon Linux 2, you must override the following variables on those host(s):

Amazon Linux:

sensu_go_repos_overrides:
  yum:
    rpm: https://packagecloud.io/sensu/stable/el/6/x86_64
    rpm-src: https://packagecloud.io/sensu/stable/el/6/SRPMS
sensu_go_community_repos_overrides:
  yum:
    rpm: https://packagecloud.io/sensu/community/el/6/x86_64
    rpm-src: https://packagecloud.io/sensu/community/el/6/SRPMS

Amazon Linux 2:

sensu_go_repos_overrides:
  yum:
    rpm: https://packagecloud.io/sensu/stable/el/7/x86_64
    rpm-src: https://packagecloud.io/sensu/stable/el/7/SRPMS
sensu_go_community_repos_overrides:
  yum:
    rpm: https://packagecloud.io/sensu/community/el/7/x86_64
    rpm-src: https://packagecloud.io/sensu/community/el/7/SRPMS

If you are using this role with Debian 8, 9, or 10 hosts, you must overide the following variable:

sensu_go_manage_community_repo: false

This is due to Debian packages not being updated to the community repos pending the resolution of sensu/sensu-plugins-omnibus#3


License
-------

[MIT](https://github.com/jaredledvina/sensu-go-ansible/blob/master/LICENSE)


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjaredledvina%2Fsensu-go-ansible.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjaredledvina%2Fsensu-go-ansible?ref=badge_large)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].