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

Feature #14972

generic "purge" parameter

Added by Michael Keller almost 2 years ago. Updated over 1 year ago.

Status:Needs DecisionStart date:06/11/2012
Priority:NormalDue date:
Assignee:eric sorenson% Done:

0%

Category:metaparameters
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

it would be nice to have a generic “purge” parameter to have “managed” resources or classes of any type like the “file” resource.

if a resource was defined with purge => true and the resource isn’t anymore in a later run, the same resource should be called with ensure => absent automatically by puppet.

this way a manual ensure => absent isn’t needed anymore and the outcome would be the same.

Example:

Original manifest:

myresource { ‘xxx’: ensure => present, # or whatever purge => true }

Later manifest:

will define automatically:

myresource { ‘xxx’: ensure => absent }

History

#1 Updated by Michael Keller almost 2 years ago

examples should read:

Original manifest:

myresource { ‘xxx’: ensure => present, purge => true }

if ensure => absent then purging is disabled as the resource will be removed at this run anyway

Later manifest:

< empty >

will define automatically:

myresource { ‘xxx’: ensure => absent }

#2 Updated by James Turnbull over 1 year ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to eric sorenson

Also available in: Atom PDF