forked from Icinga/ansible-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicinga2-web2-postgres.yml
22 lines (20 loc) · 1.47 KB
/
icinga2-web2-postgres.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
icinga2_ido_backend: pgsql
# admin user to create databases
icinga2_ido_db_admin_user: postgres
icinga2_ido_db_admin_pass: postgres
icinga2_ido_db_port: 5432
# DB's Authorization (see pg_hba.conf.j2)
pgsql_authorizations:
# Assuming IDO backends are pgsql and not external for icinga and icingaweb2 DBs with same admin user's creds
- { type: host, database: all, user: "{{ icinga2_ido_db_admin_user }}", address: 127.0.0.1/32, method: trust }
- { type: host, database: all, user: "{{ icinga2_ido_db_admin_user }}", address: '::1/128', method: trust }
- { type: host, database: all, user: "{{ icinga2_ido_db_admin_user }}", address: 172.16.1.1/32, method: trust }
- { type: host, database: "{{ icinga2_ido_db }}", user: "{{ icinga2_ido_db_user }}", address: 127.0.0.1/32, method: md5 }
- { type: host, database: "{{ icinga2_ido_db }}", user: "{{ icinga2_ido_db_user }}", address: '::1/128', method: md5 }
- { type: host, database: "{{ icinga2_ido_db }}", user: "{{ icinga2_ido_db_user }}", address: 172.16.1.1/32, method: md5 }
- { type: host, database: "{{ icinga2_web2_db }}", user: "{{ icinga2_web2_db_user }}", address: 127.0.0.1/32, method: md5 }
- { type: host, database: "{{ icinga2_web2_db }}", user: "{{ icinga2_web2_db_user }}", address: '::1/128', method: md5 }
- { type: host, database: "{{ icinga2_web2_db }}", user: "{{ icinga2_web2_db_user }}", address: 172.16.1.1/32, method: md5 }
icinga2_pnp4nagios_log_debug: -1
# See groups_vars/vagrant for Icinga 2 config