Issue #14128 has been reported by Reinoud van Leeuwen.

----------------------------------------
Feature #14128: optionally clean exported resources for a host during puppet run
https://projects.puppetlabs.com/issues/14128

Author: Reinoud van Leeuwen
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Problem: 
When the configuration of a host changes (classes might be removed), old 
exported resources stay in the storeconfig database. 

Businesscase:
Suppose we have implemented a central backupserver. backup clients export 
resources, and the central backupserver collects them to generate a config file 
that contains all hosts to backup. Once in a while we need to remove a client 
from the backupserver. removing the "class { 'centralbackupservice::client:; }" 
statement from the nodefile will not help, since the exported resources will 
stay in the database and will keep being collected by the server.
Similar cases can be described with changing nagios services which behave in a 
similar nature. 

Solution:
a configurable switch that does a "delete all exported resources for this host" 
during the puppetrun on the client. This should be encapsulated in a single 
database transaction that puts all exported resources back into the storeconfig 
database to make sure that a concurrent puppettun on the servermachine will not 
request missing exported resources.
The configuration can be done serverside near the storeconfig configuration, to 
make sure that the current behaviour will not change for installations that 
depend on it.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to