cybre-finn / ansible-icinga2-daemon

This role installes a basic setup for an Icinga 2 agent or satellite on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: icinga2 daemon

This role installes a basic setup for an Icinga 2 agent or satellite on Linux.

Requirements

  • Just the python interpreter

Role Variables

Variable Description Default
icinga2_node_cn Common Name of the Node undefined
icinga2_parent_cn Common Name of the parent Node undefined
icinga2_parent_address IP addresse or FQDN of the parent Node undefined
icinga2_ticket Request ticket. You can also generate this automatically by providing icinga2_api_gen_ticket, icinga2_api_user and icinga2_api_pwd. undefined
icinga2_port Defines the port where Icinga is bound 5665
icinga2_debian_version Defines Icinga version to be used for Debian 2.9.1-1
icinga2_rhel_version Defines Icinga version to be used for RHEL "2.10.1-1.el{{ ansible_distribution_major_version }}.icinga"
icinga2_api_gen_ticket Defines the API endpoint for ticket requests undefined
icinga2_api_user Username for the Icinga API undefined
icinga2_api_pwd User password for the Icinga API undefined

Dependencies

None.

Example Playbook

- hosts: 01.web.example.net
  vars:
    icinga2_node_cn: 01.web.example.net
    icinga2_parent_cn: icinga2.example.net
    icinga2_parent_address: 198.51.100.215

    # either this
    icinga2_ticket: cf4ed9297b7a4c838ada1ba709e9befb1afa6526

    # or this
    icinga2_api_gen_ticket: "https://icinga-master.example.net:5665/v1/actions/generate-ticket"
    icinga2_api_user: root
    icinga2_api_pwd: hunter2
  roles:
    - ansible-icinga2-daemon

Tested with the following Linux distributions

  • Debian 9
  • Debian 8
  • RHEL 7
  • RHEL 6

License

GNU General Public License Version 2

Author Information

Special thanks to Valentino Gagliardi from the Icinga Dev Team. I used his ansible role as a base.

About

This role installes a basic setup for an Icinga 2 agent or satellite on Linux

License:GNU General Public License v2.0


Languages

Language:Shell 100.0%