I wanted to play around with Icinga and automate the installation of it as documented on https://www.icinga.com/docs/icinga2/latest/doc/02-getting-started/
- .vault file in your home folder
- encrypted_variables.yml in your icinga-poc folder (ignored by .gitignore containing the following variables with your own preferred passwords:
# SELECT PASSWORD('abcdefghijklmn');
If you’ll have cloned https://bitbucket.org/masterdam79/icinga-poc/src/master/ and cd into the icinga-poc directory, you’ll be able to run the playbook doing most of the install as follows:
ansible-playbook -i hosts --vault-password-file=~/.vault playbook.yml
If you then go to http://192.168.22.155/icingaweb2/setup you’ll be able to set-up your icinga2 server with the credentials above.