Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

[READ-ONLY] Ansible role dealing with the setup and config of Sensu Go https://galaxy.ansible.com/manala/sensu_go/

Notifications You must be signed in to change notification settings

manala/ansible-role-sensu_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#######################################################################################################

❗ DEPRECATION ❗

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Sensu Go [ Build Status

Report issues and send Pull Requests in the main Ansible Role repository

This role will deal with the setup of Sensu Go.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

This role is made to work with the sensu go official packages, available on the sensu go repository. Please use the manala.apt role to handle it properly.

manala_apt_preferences:
  - sensu-go@sensu-go

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.sensu_go

Using ansible galaxy requirements file:

- src: manala.sensu_go

Role Handlers

Name Type Description
sensu go restart Service Restart all installed sensu go services

Role Variables

Name Default Type Description
manala_sensu_go_install_packages ~ Array Dependency packages to install
manala_sensu_go_install_packages_default ['sensu-go-backend', sensu-go-cli'] Array Default dependency packages to install
manala_sensu_go_backend false Array Additional package to install ('sensu-go-backend' if set to true)
manala_sensu_go_backend_config_file /etc/sensu/backend.yml String Path to backend config file
manala_sensu_go_backend_config {} Array Configuration directives for sensu-backend
manala_sensu_go_agent_config_file /etc/sensu/agent.yml String Path to agent config file
manala_sensu_go_agent_config {} Array Configuration directives for sensu-agent
manala_sensu_go_services {} Array Enable and start sensu services (sensu-backend, sensu-agent)

Configuration example

Sensu Go backend

manala_sensu_go_backend: true

manala_sensu_go_backend_config:
  - state-dir: /tmp

Sensu Go agent

manala_sensu_go_agent_config:
  - backend-url: ['ws://127.0.0.1:8081']
  - subscriptions: ['linux', 'mysql', 'foo']

Example playbook

- hosts: sensu
  roles:
    - { role: manala.sensu_go }

Licence

MIT

Author information

Manala (http://www.manala.io/)