The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #14128

optionally clean exported resources for a host during puppet run

Added by Reinoud van Leeuwen about 2 years ago. Updated over 1 year ago.

Status:Needs DecisionStart date:04/23/2012
Priority:NormalDue date:
Assignee:Deepak Giridharagopal% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

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.

History

#1 Updated by Daniel Pittman about 2 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Deepak Giridharagopal

Can you take a look at this, please.

Also available in: Atom PDF