Demande #1035: mettre un puppetmaster en production
lancement de test jenkins lors des modifications du puppetmaster
stub script to run puppet client and nagios based within a tenant and driven by jenkins. refs #1041
fix to run manually and validate technical details before going into something that actuall does something useful. refs #1041
keep the server name implicit and avoid mentioning domain names to simplify the test process. refs #1041.
fix generation and initialisation of the puppetmaster. If it already exists, just git pull. refs #1041.
add nagios.novalocal to apply the manifest to the test environment. refs #1041.
reorder the bootstrap operations to preserve some directories in /etc/puppet and autosign when in the test environment. refs #1041.
make sure the apt update is done on each run otherwise tests may fail because of an obsolete cache. refs #1041.
Set the nagios password for debugging purposes because debian non interactive installation does not create any user. During cleanup, remove the certificates for all instances used during the test otherwise they will block the puppetization of another machine with the same name. refs #1041.
notify nagios3 on each @@nagios_host. subscribing on the target won't work because the naginator provider does not use the file type. refs #1041
add an assert based on livestatus to demonstrate queries of the nagios status database. refs #1041
notify nagios3 when livestatus is configured so that it is restarted. refs #1041
run puppet twice because exported resources need a second run to be evaluated. wait until livestatus is available. refs #1041