icinga2-formula
1. General notes
See the full SaltStack Formulas installation and usage instructions.
If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.
If you want to use this formula, please pay attention to the FORMULA
file and/or git tag
, which contains the currently released version.
This formula is versioned according to Semantic
Versioning.
See Formula Versioning Section for more details.
If you need (non-default) configuration, please pay attention to the
pillar.example
file and/or Special notes section.
2. Contributing to this repo
Commit message formatting is significant!!
Please see How to contribute for more details.
4. Available states
5. States which are independent (reusable) building blocks
5.1. icinga2.icinga-web2-database
Creates the DB user and the DB itself. (Makes only sense if the DB shall run on the same host as Icinga2)
5.3. icinga2.pgsql-ido
Installs and configures icinga2-ido-pgsql
. You may want to add
icinga2.postgresql-client
5.6. icinga2.repositories
Adds the Debian / Ubuntu repository to get Icinga2 packages from if (and only if) the machine happens to run one of the mentioned operating systems.
5.7. icinga2.check_command.openvpn
Sets up CheckCommand openvpn
using
https://github.com/liquidat/nagios-icinga-openvpn.
5.8. icinga2.notification.xmpp
Sets up notification via XMPP using slixmpp.
6. Testing
Linux testing is done with kitchen-salt
.
6.1. Requirements
-
Ruby
-
Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]
Where [platform]
is the platform name defined in kitchen.yml
, e.g.
debian-9-2019-2-py3
.
6.2. bin/kitchen converge
Creates the docker instance and runs the template
main state, ready
for testing.