adfinis-sygroup.icinga2_web
ロール Icinga2_Web
このロールは、icingaweb2をインストールして設定します。
必要条件
このロールを使用するには、システムにwebサーバーがインストールされている必要があります。Adfinisでは、以下のロールを使用しています:
ロールの依存関係
このロールには以下の依存関係があります:
roles:
- name: 'adfinis.icinga2_agent'
collections:
- ansible.posix
- community.general
- community.mysql
- robertdebock.roles
依存関係が正しくインストールされるためには、プロジェクトに上記の内容のrequirements.yml
を作成する必要があります。
ロール変数
# icingaweb2のWeb UIパスワード
icinga2_web_admin_pass: 'passw0rd'
# icinga2 APIホスト
icinga2_web_api_host: 127.0.0.1
# icinga2 APIポート
icinga2_web_api_port: 5665
# icinga2 APIユーザー
icinga2_web_api_user: icingaweb2
# icinga2 APIパスワード
icinga2_web_api_pass: 'passw0rd'
## icingaweb2データベース設定
# icingaweb2データベース名
icinga2_web_icingaweb2_database_name: icingaweb2
# icingaweb2データベースユーザー
icinga2_web_icingaweb2_database_user: icingaweb2
# icingaweb2データベースパスワード
icinga2_web_icingaweb2_database_pass: 'passw0rd'
# icingaweb2データベースホスト
icinga2_web_icingaweb2_database_host: 127.0.0.1
# icingaweb2データベースポート
icinga2_web_icingaweb2_database_port: 3306
## Icinga2データベース設定
# icinga2データベース名
icinga2_web_icinga2_database_name: icinga2
# icinga2データベースホスト
icinga2_web_icinga2_database_host: 127.0.0.1
# icinga2データベースポート
icinga2_web_icinga2_database_port: 3306
# icinga2データベースユーザー
icinga2_web_icinga2_database_user: icinga2
# icinga2データベースパスワード
icinga2_web_icinga2_database_pass: 'passw0rd'
LDAP認証
LDAP認証を設定するには、以下の変数を設定する必要があります。複数の設定バックエンドを有効にすることができます。
# Icingaweb2 LDAP認証
# 詳細は公式のicingaweb2ドキュメントを参照してください:
# https://icinga.com/docs/icingaweb2/latest/doc/04-Resources/#ldap
#icinga2_web_ldap:
# - name: res_ldap_example_com
# host: ldap.example.com
# port: 636
# encryption: ldaps
# root_dn: 'cn=accounts,dc=ldap,dc=example,dc=com'
# bind_dn: 'uid=icingaweb2.auth,cn=systems,dc=ldap,dc=example,dc=com'
# bind_pw: 'ldapパスワード'
# timeout: 5
# Icingaweb2 LDAPユーザー設定
# 詳細は公式のicingaweb2ドキュメントを参照してください:
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap
#
#icinga2_web_ldap_userconf:
# - name: user_ldap_example_com # 必須
# resource: 'res_ldap_example_com' # 必須
# user_class: 'inetOrgPerson' # 必須
# user_name_attribute: 'uid' # 必須
# base_dn: 'cn=accounts,dc=ldap,dc=example,dc=com' # 任意
# filter: "(somefilter)" # 任意
icinga2_web_ldap_userconf: []
# Icingaweb2 LDAPグループ設定
# 詳細は公式のicingaweb2ドキュメントを参照してください:
# https://icinga.com/docs/icingaweb2/latest/doc/05-Authentication/#ldap-groups
#
#icinga2_web_ldap_groupconf:
# - name: group_ldap_example_com # 必須
# resource: 'res_ldap_example_com' # 必須
# user_backend = "user_ldap_examle_com" # 必須
# user_class: 'user' # 任意
# user_name_attribute: 'uid' # 任意
# group_class: 'group' # 任意
# group_name_attribute: 'gid' # 任意
# group_member_attribute: 'memberUid' # 任意
# group_filter: '(somefilter)' # 任意
Icingaweb2の権限
# Icinga2権限設定
# 詳細は公式のicingaweb2ドキュメントを参照してください:
# https://icinga.com/docs/icingaweb2/latest/doc/06-Security/#configuration
#
#icinga2_web_permissions:
# - name: Administrators
# users:
# - admin
# groups:
# - Administrators
# permissions:
# '*'
# object_filter: ""
# - name: customer
# users:
# - customer1
# permissions:
# 'monitoring/command/*,module/*'
# object_filter: 'host_name=*.customer.example.com"'
サンプルプレイブック
- hosts: servers
roles:
- { role: adfinis.icinga2_web }
ライセンス
作成者情報
icinga2_webロールは以下によって書かれました:
インストール
ansible-galaxy install adfinis-sygroup.icinga2_web
ライセンス
gpl-3.0
ダウンロード
4k
所有者
Adfinis SyGroup was rebranded to Adfinis, follow the link below: