Hi all,
I have a few nodes which have deen decommissioned but still appear within my dashboard within the ureported section. I probably have forgot something but what ?
My puppetmaster (rhel5.9) hosts the 3 roles : puppet-server-3.2.2, puppetdb-1.1.1, puppet-dashboard-1.2.22
The process I use to decommission :
- Clean the certificate on puppetmaster :
puppet cert clean "node.domain" - Delete the node itself from puppetdb :
puppet node deactivate "node.domain"Concerning the dashboard, I use a pruning job in my crontab :
35 6 * * * /etc/puppet/maintenance/puppet-dashboard.cleanup_reports.cronThe job itself :
set -u
find /var/lib/puppet/reports/*/ -mtime +7 -exec rm {} \;
PUPPET_DB_PATH=/usr/share/puppet-dashboard
cd $PUPPET_DB_PATH
output=`rake -s -f ${PUPPET_DB_PATH}/Rakefile RAILS_ENV=production reports:prune upto=1 unit=wk`
if [ $? -ne 0 ]; then
logger -i "${output}"
fi
echo $output
Regards
Yannig