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: Prepare container
hosts: all
gather_facts: true
roles:
- role: buluma.bootstrap
- role: buluma.ca_certificates
tasks:
- name: apt update
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
# ディレクター
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