defaults = { 'apt': { 'repos': { 'icinga2': { 'items': { 'deb http://packages.icinga.com/{os} icinga-{os_release} main', 'deb-src http://packages.icinga.com/{os} icinga-{os_release} main', }, }, }, 'packages': { 'icinga2': {}, 'icinga2-ido-pgsql': {}, 'icingaweb2': {}, 'icingaweb2-module-monitoring': {}, # needed for check_rbl 'libdata-validate-ip-perl': {}, 'libdata-validate-ip-perl': {}, 'libmonitoring-plugin-perl': {}, 'libnet-dns-perl': {}, 'libreadonly-perl': {}, } }, 'icinga2': { 'api_users': { 'root': repo.vault.password_for(f'{node.name} icinga2 api root'), }, }, 'icingaweb2': { 'setup-token': repo.vault.password_for(f'{node.name} icingaweb2 setup-token'), }, 'postgresql': { 'roles': { 'icinga2': { 'password': repo.vault.password_for(f'{node.name} postgresql icinga2'), }, }, 'databases': { 'icingaweb2': { 'owner': 'icinga2', }, 'icinga2': { 'owner': 'icinga2', }, }, }, }