buluma.icingaweb2
Rola Ansible icingaweb2
Instaluje i konfiguruje Icinga Web 2 na systemach Rhel, Debian i Ubuntu.
GitHub | Wersja | Problemy | Prośby o włączenie | Pobrania |
---|---|---|---|---|
Przykład Playbooka
Ten przykład pochodzi z molecule/default/converge.yml
i jest testowany przy każdym przesłaniu, prośbie o włączenie i wydaniu.
---
- name: Konwergencja
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.icingaweb2
Maszyna musi być przygotowana. W CI robi się to za pomocą molecule/default/prepare.yml
:
---
- name: Przygotowanie kontenera
hosts: all
gather_facts: true
roles:
- role: buluma.bootstrap
- role: buluma.ca_certificates
tasks:
- name: aktualizacja apt
ansible.builtin.apt:
name: "{{ item }}"
update_cache: yes
state: present
loop:
- gnupg
when: ( ansible_os_family == "Debian" and ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "18" ) or
( ansible_os_family == "Debian" and ansible_distribution_major_version == "10" )
Zobacz także pełne wyjaśnienie i przykład jak używać tych ról.
Zmienne Roli
Domyślne wartości zmiennych ustawione są w defaults/main.yml
:
---
# Parametry instalacji
icingaweb2_manage_package: yes
icingaweb2_manage_centos_scl: yes
icingaweb2_manage_repository: yes
icingaweb2_manage_roles: yes
icingaweb2_manage_director: no
icingaweb2_config_dir: /etc/icingaweb2
icingaweb2_modules_path: /usr/share/icingaweb2/modules
icingaweb2_modules_config: "{{ icingaweb2_config_dir }}/modules"
icingaweb2_group: icingaweb2
# Dyrektor
icingaweb2_director_home: /var/lib/icingadirector
icingaweb2_manage_director_service: no
icingaweb2_resources:
icinga_ido:
type: db
db: mysql
host: localhost
dbname: icinga
username: icinga
password: icinga
use_ssl: 0
charset: utf8
icingaweb_db:
type: db
db: mysql
host: localhost
dbname: icingaweb
username: icingaweb
password: icingaweb
use_ssl: 0
icingaweb2_groups:
icingaweb2:
backend: db
resource: icingaweb_db
icingaweb2_authentication:
icingaweb2:
backend: db
resource: icingaweb_db
icingaweb2_config:
global:
show_stacktraces: 1
show_application_state_messages: 1
config_backend: ini
module_path: /usr/share/icingaweb2/modules
logging:
log: syslog
level: ERROR
application: icingaweb2
facility: user
themes:
default: Icinga
icingaweb2_monitoring_config:
security:
protected_customvars: "*pw*,*pass*,community"
icingaweb2_monitoring_backends:
icinga:
type: ido
resource: icinga_ido
icingaweb2_monitoring_commandtransports:
icinga2:
transport: api
host: localhost
port: 5665
username: root
password: root
icingaweb2_modules:
- name: monitoring
Wymagania
- Pakiety pip wymienione w requirements.txt.
Stan używanych ról
Poniższe role są używane do przygotowania systemu. Możesz przygotować swój system w inny sposób.
Wymaganie | GitHub | Wersja |
---|---|---|
buluma.bootstrap | ||
buluma.ca_certificates |
Kontekst
Ta rola jest częścią wielu kompatybilnych ról. Zobacz dokumentację tych ról po więcej informacji.
Oto przegląd powiązanych ról:
Kompatybilność
Ta rola była testowana na tych obrazach kontenerów:
kontener | tagi |
---|---|
EL | wszystkie |
Ubuntu | wszystkie |
Debian | wszystkie |
Minimalna wersja Ansible to 2.12, testy były przeprowadzane:
- Na poprzedniej wersji.
- Na bieżącej wersji.
- Na wersji rozwojowej.
Jeśli znajdziesz problemy, zgłoś je na GitHubie.
Dziennik zmian
Licencja
Informacje o autorze
Installs and configures Icinga Web 2 on Rhel, Debian and Ubuntu
ansible-galaxy install buluma.icingaweb2