Skip to content

boutetnico/ansible-role-sensu_go_backend

Repository files navigation

tests Ansible Galaxy

ansible-role-sensu_go_backend

This role installs Sensu Go backend through Docker.

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

Requirements

Ansible 2.10 or newer.

Supported Platforms

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:<name
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