buluma.icingaweb2
Ansible 角色 icingaweb2
在 Rhel、Debian 和 Ubuntu 上安装和配置 Icinga Web 2
GitHub | 版本 | 问题 | 拉取请求 | 下载 |
---|---|---|---|---|
示例剧本
这个示例来自 molecule/default/converge.yml
,并在每次推送、拉取请求和发布时进行测试。
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.icingaweb2
需要对机器进行准备。在 CI 中使用 molecule/default/prepare.yml
进行准备:
---
- name: 准备容器
hosts: all
gather_facts: true
roles:
- role: buluma.bootstrap
- role: buluma.ca_certificates
tasks:
- name: 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" )
另外可以查看 完整说明和示例 来了解如何使用这些角色。
角色变量
变量的默认值在 defaults/main.yml
中设置:
---
# 安装参数
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
# Director
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
要求
- 在 requirements.txt 中列出的 pip 包。
已使用角色的状态
以下角色用于准备系统。您可以以其他方式准备系统。
需求 | GitHub | 版本 |
---|---|---|
buluma.bootstrap | ||
buluma.ca_certificates |
上下文
这个角色是许多兼容角色的一部分。请查看 这些角色的文档 以获取更多信息。
以下是相关角色的概述:
兼容性
此角色已在这些 容器镜像 上进行测试:
容器 | 标签 |
---|---|
EL | 所有 |
Ubuntu | 所有 |
Debian | 所有 |
所需的最小 Ansible 版本是 2.12,并且已对以下情况进行了测试:
- 前一个版本。
- 当前版本。
- 开发版本。
如果您发现问题,请在 GitHub 上注册。
变更日志
许可证
作者信息
关于项目
Installs and configures Icinga Web 2 on Rhel, Debian and Ubuntu
安装
ansible-galaxy install buluma.icingaweb2
许可证
apache-2.0
下载
6.8k
拥有者
DevOps Engineer