Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boutetnico/ansible-role-sensu_go_backend

Install Sensu Go backend through Docker using Ansible.
https://github.com/boutetnico/ansible-role-sensu_go_backend

ansible backend debian docker sensu sensu-go ubuntu

Last synced: about 4 hours ago
JSON representation

Install Sensu Go backend through Docker using Ansible.

Awesome Lists containing this project

README

        

[![tests](https://github.com/boutetnico/ansible-role-sensu_go_backend/workflows/Test%20ansible%20role/badge.svg)](https://github.com/boutetnico/ansible-role-sensu_go_backend/actions?query=workflow%3A%22Test+ansible+role%22)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-boutetnico.sensu_go_backend-blue.svg)](https://galaxy.ansible.com/boutetnico/sensu_go_backend)

ansible-role-sensu_go_backend
=============================

This role installs [Sensu Go backend](https://docs.sensu.io/sensu-go/latest/reference/backend/) through Docker.

It is part of a family of Ansible roles allowing to setup and configure Sensu Go components:

- [ansible-role-sensu_go_agent](https://github.com/boutetnico/ansible-role-sensu_go_agent)
- [ansible-role-sensu_go_cli](https://github.com/boutetnico/ansible-role-sensu_go_cli)
- [ansible-role-sensu_go_backend](https://github.com/boutetnico/ansible-role-sensu_go_backend)

Requirements
------------

Ansible 2.10 or newer.

Supported Platforms
-------------------

- [Debian - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)

Role Variables
--------------

| Variable | Required | Default | Choices | Comments |
|---------------------------------|----------|--------------------|-----------|----------------------------------------------------|
| sensu_backend_docker_image | true | `sensu/sensu` | string | |
| sensu_backend_docker_tag | true | `latest` | string | https://hub.docker.com/r/sensu/sensu/tags |
| sensu_backend_docker_pull | true | `false` | boolean | Set `true` to force pulling a newer Docker image. |
| sensu_backend_docker_env | true | | dict | See `defaults/main.yml`. |
| sensu_backend_host_data_path | true | `/var/lib/sensu` | string | Path to files on host for persistence. |
| sensu_backend_log_level | true | `warn` | string | Values: panic, fatal, error, warn, info, debug. |
| sensu_backend_network_mode | true | `bridge` | string | `bridge`, `host`, `none` or `container:`. |
| sensu_backend_ports | true | | list | See `defaults/main.yml`. |
| sensu_backend_container_state | true | `started` | string | `absent`, `present`, `stopped` or `started`. |
| sensu_backend_restart_policy | true | `unless-stopped` | string | `no`, `on-failure`, `always`, `unless-stopped`. |

Dependencies
------------

Docker

Example Playbook
----------------

- hosts: all
roles:
- role: ansible-role-sensu_go_backend

Testing
-------

## Debian

molecule --base-config molecule/shared/base.yml test --scenario-name debian-11
molecule --base-config molecule/shared/base.yml test --scenario-name debian-12

## Ubuntu

molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2204

License
-------

MIT

Author Information
------------------

[@boutetnico](https://github.com/boutetnico)