{"id":19014992,"url":"https://github.com/adfinis/ansible-role-icinga2_master","last_synced_at":"2025-06-27T18:36:00.303Z","repository":{"id":34270199,"uuid":"159234743","full_name":"adfinis/ansible-role-icinga2_master","owner":"adfinis","description":"This role is used to configure an icinga2 master","archived":false,"fork":false,"pushed_at":"2025-02-11T12:37:48.000Z","size":343,"stargazers_count":2,"open_issues_count":8,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-17T18:22:50.179Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","automation","icinga2","infrastructure","monitoring"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adfinis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-11-26T21:24:06.000Z","updated_at":"2025-02-11T12:26:22.000Z","dependencies_parsed_at":"2023-12-20T09:37:10.983Z","dependency_job_id":"c9337543-5436-4d26-8c59-adb846e40bea","html_url":"https://github.com/adfinis/ansible-role-icinga2_master","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fansible-role-icinga2_master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fansible-role-icinga2_master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fansible-role-icinga2_master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fansible-role-icinga2_master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adfinis","download_url":"https://codeload.github.com/adfinis/ansible-role-icinga2_master/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354270,"owners_count":21416747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","automation","icinga2","infrastructure","monitoring"],"created_at":"2024-11-08T19:34:39.254Z","updated_at":"2025-04-23T01:37:41.905Z","avatar_url":"https://github.com/adfinis.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"ROLE ICINGA2\\_MASTER\n====================\n\n[![image](https://img.shields.io/github/license/adfinis/ansible-role-icinga2_master.svg?style=flat-square)](https://github.com/adfinis/ansible-role-icinga2_master/blob/master/LICENSE)\n\n[![image](https://img.shields.io/github/actions/workflow/status/adfinis/ansible-role-icinga2_master/ansible-ci.yml?style=flat-square)](https://github.com/adfinis/ansible-role-icinga2_master/actions)\n\n[![image](https://img.shields.io/badge/galaxy-adfinis.icinga2_master-660198.svg?style=flat-square)](https://galaxy.ansible.com/adfinis/icinga2_master)\n\nThis role configures icinga2 to act as a master. Furthermore, this role\ntakes care of the configuration for all clients.\n\nRequirements\n------------\n\nWhen icinga2\\_master\\_ido\\_enabled is turned on the role tries to\nactivate the [IDO\nfeature](https://icinga.com/docs/icinga2/latest/doc/14-features/#db-ido)\nfor icinga2. This needs a running database, either already existing or\nusing the\n[adfinis.mariadb](https://galaxy.ansible.com/adfinis/mariadb)\nrole. Note: When using a multi-master setup, only one database must be\nused for both instances!\n\nRole Variables\n--------------\n\n```yaml\n# The icinga2 master zone\nicinga2_master_master_zone: monitoring-master\n\n# A list of all icinga2 api users\nicinga2_master_api_users: []\n#  - username: root\n#    password: 'passw0rd'\n#    permissions: '*'\n#  - username: token-generator\n#    password: 'passw0rd'\n#    permissions: 'actions/generate-ticket'\n```\n\nTemplates can be adjusted using variables.\n\n```yaml\n## Template settings\n\n# If you have own templates for the configuration files in /etc/icinga2/conf.d\n# consider adjusting the names here and add your template to\n# templates/etc/icinga2/conf.d in the root of your playbook folder.\nicinga2_master_template_confd_notifications: \"notifications.conf\"\nicinga2_master_template_confd_templates: \"templates.conf\"\nicinga2_master_template_confd_commands: \"commands.conf\"\nicinga2_master_template_confd_groups: \"groups.conf\"\nicinga2_master_template_confd_timeperiods: \"timeperiods.conf\"\nicinga2_master_template_confd_users: \"users.conf\"\n\n# These variables can be adjusted if you have custom templates for the global\n# templates directory which gets synced to all clients.\nicinga2_master_template_globaltemplates:\n  - \"services.conf\"\n  - \"templates.conf\"\n\n# If the nagios plugin directory differs, you can also change it:\nicinga2_master_nagios_plugin_dir: /usr/lib/nagios/plugins\n```\n\nIf you want to use [Twilio](https://www.twilio.com) for the alerting,\nyou can create an account. After that, you can receive an Application\nSID and Auth token from the twilio console. If you plan to make phone\ncalls, please create a [TwiML](https://www.twilio.com/docs/voice/twiml)\napplication.\n\n```yaml\n## Twilio alerting\n\n# The account sid from https://www.twilio.com/console\n#icinga2_master_twilio_account_sid: 'account_sid'\n\n# The auth token from https://www.twilio.com/console\n#icinga2_master_twilio_auth_token: 'auth_token'\n\n# Whether twilio sms are enabled or not\nicinga2_master_twilio_sms_enabled: False\n\n# The twilio phone numer used to send sms\n#icinga2_master_twilio_sms_from: '+41123456789'\n\n# Twilio SMS scripts additional commands\n# Can be used to execute custom scripts after the SMS is sent\n# defaults to an empty list, add command lines as necessary\n# Example:\n#icinga2_master_twilio_sms_additional_commands:\n#  # Execute a custom script after the sms has been sent to also send\n#  # the notification to mattermost\n#  - \"/etc/icinga2/scripts/mattermost.sh \"${NOTIFICATION_MESSAGE}\"\"\nicinga2_master_twilio_sms_additional_commands: []\n\n# Whether twilio calls are enabled or not\nicinga2_master_twilio_phone_enabled: False\n\n# The twilio phone number used to make calls\n#icinga2_master_twilio_phone_from: '+41123456789'\n\n# The twilio application on how to handle the call. You can either choose\n# application sid or appication url. Choose only one. default is not defined.\n# https://www.twilio.com/docs/voice/make-calls\n#icinga2_master_twilio_phone_application_sid: 'application_sid'\n#icinga2_master_twilio_phone_application_url: 'application_url'\n```\n\nRole Special Hostgroups\n---------------\n\nThe following names will be used in the context of ansible group selectors and are evaluated inside of the role\nTheir special meaning should be described in more depth (!!TODO!!).\n\n* monitoring_client\n* monitoring_master\n* monitoring_sat\n\nDependencies\n------------\n\nThis role depends on the role\n[adfinis.icinga2\\_agent](https://galaxy.ansible.com/adfinis/icinga2_agent),\nwhich installs the icinga2 binary.\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: monitoring-master\n  roles:\n     - { role: adfinis.icinga2_agent }\n     - { role: adfinis.icinga2_master }\n```\n\nLicense\n-------\n\n[GPL-3.0](https://github.com/adfinis/ansible-role-icinga2_master/blob/master/LICENSE)\n\nAuthor Information\n------------------\n\nicinga2\\_master role was written by:\n\n-   Adfinis AG \\| [Website](https://www.adfinis.com/) \\|\n    [Twitter](https://twitter.com/adfinis) \\|\n    [GitHub](https://github.com/adfinis)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fansible-role-icinga2_master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadfinis%2Fansible-role-icinga2_master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fansible-role-icinga2_master/lists"}