Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stdevel/ansible-omd
Ansible role for installing OMD (Open Monitoring Distribution)
https://github.com/stdevel/ansible-omd
ansible ansible-role icinga icinga2 monitoring naemon nagios omd
Last synced: 9 days ago
JSON representation
Ansible role for installing OMD (Open Monitoring Distribution)
- Host: GitHub
- URL: https://github.com/stdevel/ansible-omd
- Owner: stdevel
- License: gpl-3.0
- Created: 2019-11-30T10:18:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T11:48:53.000Z (about 2 years ago)
- Last Synced: 2024-04-26T00:16:37.369Z (7 months ago)
- Topics: ansible, ansible-role, icinga, icinga2, monitoring, naemon, nagios, omd
- Language: Python
- Homepage: https://galaxy.ansible.com/stdevel/omd
- Size: 51.8 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/stdevel/ansible-omd.svg?branch=master)](https://travis-ci.org/stdevel/ansible-omd)
# omd
This role installs and configures [OMD (*Open Monitoring Distribution*)](https://omdistro.org).
## Requirements
The system needs access to the internet. Also, you will need a Linux installation [supported by OMD](https://labs.consol.de/repo/stable) - e.g.:
- CentOS / Red Hat Enterprise Linux
- 7
- 8
- SUSE Linux Enterprise Server 12
- Debian
- 10 (*Buster*)
- 11 (*Bullseye*)
- Ubuntu
- 18.04 (*Bionic Beaver*)
- 20.04 (*Focal Fossa*)
- 22.04 (*Jammy Jellyfish*)Also make sure to have [EPEL](https://fedoraproject.org/wiki/EPEL) enabled for CentOS or Red Hat Enterprise Linux systems!
## Role Variables
| Variable | Default | Description |
| -------- | ------- | ----------- |
| `omd_repo_flavor` | `stable` | Use `stable` or `testing` repository (*nightly builds*) |
| `omd_version` | `4.60` | OMD package version to choose |The variable `sites` contains a dict specifying sites and their appropriate configuration to create. Refer to the following table for possible variables:
| Variable | Description |
| -------- | ----------- |
| `name` | Site name |
| `core` | Site core (*`icinga2`, `naemon` and for 2.x versions also `icinga` and `nagios`*) |
| `default_gui` | Default GUI (*`thruk`, `grafana` and for 2.x versions also `nagios` and `check_mk`*) |
| `thruk_cookie_auth` | Flag whether Thruk cookie authorization should be used (`on` or `off`) |
| `remove_nagios_protection` | Flag whether insecure Nagios CGIs should be disabled (*only for 2.x versions*) |
| `admin_password` | `omdadmin` default password (*default: empty, automatically set by OMD*) |By default, an Icinga2 site is created:
```yaml
omd_sites:
- name: icinga2
core: icinga2
default_gui: thruk
thruk_cookie_auth: false
remove_nagios_protection: false
```## Dependencies
No dependencies.
## Example Playbook
Refer to the following example:
```yaml
- hosts: servers
roles:
- stdevel.omd
```Set variables if required, e.g.:
```yaml
---
- hosts: bacinga.giertz.loc
remote_user: root
roles:
- role: stdevel.omd
package_omd: '4.60'
```Keep in mind enabling EPEL on RHEL/CentOS systems:
```yaml
---
- hosts: bluecap.giertz.loc
remote_user: root
roles:
- role: geerlingguy.repo-epel
- role: stdevel.omd
omd_version: '3.30'
```## License
GPL 3.0
## Author Information
Christian Stankowic ([email protected])