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.cron* The 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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.