Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.
 
 

Repository files navigation

nephelaiio.heartbeat

Build Status Ansible Galaxy

An ansible role to install and configure heartbeat

Role Variables

Please refer to the defaults file for an up to date list of input parameters.

Dependencies

Please review the dependency configuration for more details

Example Playbook

- hosts: servers
  vars:
    heartbeat_package_state: latest
    heartbeat_conf_manage: yes
    heartbeat_conf:
      heartbeat:
        monitors:
          - type: http
            schedule: '*/1 * * * * * *'
            urls:
              - "https://www.google.com"
              - "https://www.amazon.com"
      output:
        elasticsearch:
          enabled: true
          hosts:
            - http://localhost:9200
      setup:
        dashboards:
          enabled: true
          beat: heartbeat
          always_kibana: true
        template:
          enabled: true
        kibana:
          host: http://localhost:80
  roles:
     - role: nephelaiio.heartbeat

Example Playbook with config file

- hosts: servers
  vars:
    heartbeat_package_state: latest
    heartbeat_conf_file: ./my-heartbeat-config.yml
  roles:
     - role: nephelaiio.heartbeat

Testing

Please make sure your environment has docker installed in order to run role validation tests. Additional python dependencies are listed in the requirements file

Role is tested against the following distributions (docker images):

  • Ubuntu Bionic
  • Ubuntu Xenial
  • CentOS 7
  • Debian Stretch

You can test the role directly from sources using command molecule test

License

This project is licensed under the terms of the MIT License

About

An Ansible role to install and configure heartbeat

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages