Demande #1041
Demande #1035: mettre un puppetmaster en production
lancement de test jenkins lors des modifications du puppetmaster
Description
A chaque commit dans https://agir.april.org/projects/admins/repository, lancer un test dans jenkins.vm.april-int
Pour interroger l'état de nagios, voir http://mathias-kettner.de/checkmk_livestatus.html
Documentation complete de la résolution dans realistic puppet tests with jenkins and OpenStack
Related issues
Associated revisions
minimal TEST are running, fixing syntax errors. refs #1041
install nova client and euca2ools. refs #1041
install nova client and euca2ools. refs #1041
invert keypair-add arguments. refs #1041
missing underscore. 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.
deploy puppetmaster, expect nagios to be spawned. 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.
fix autosign. refs #1041.
run tests from jenkins. refs #1041.
minimal nagios monitoring for each host. 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
install and configure check-mk-livestatus for nagios 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
move the check to the dedicated function. refs #1041
move the check to the dedicated function. refs #1041
Jenkins for continuous integration : if not included jenkins will be denied access as soon as the puppet manifest is applied. refs #1041
History
Updated by Loïc Dachary about 11 years ago
- Target version changed from Novembre 2012 to Décembre 2012 (1/2)
Updated by Loïc Dachary about 11 years ago
- Target version changed from Décembre 2012 (1/2) to Backlog
Updated by Loïc Dachary about 11 years ago
Ajout du script openstack-test.sh dans jenkins.vm.april-int
Updated by Loïc Dachary about 11 years ago
- Status changed from En cours de traitement to Résolu
- % Done changed from 0 to 100
stub script to run puppet client and nagios based within a tenant and driven by jenkins. refs #1041