Issue #7600 has been updated by Stefan Schulte.
IIRC `resource { 'mytype': purge => true }` works for every provider that has
an `instances` method. I dont know if this can work for all types:
* How should purging files behave? Delete ALL files I dont manage with puppet?
* How should purging services behave? Stop all running and unmanaged services?
* Purging ssh_authorized_key: ssh-keys can be stored in different files (unlike
host entries). Should puppet go through all possible homedirectories searching
for keyfiles to delete entries there?
I also see a problem with the current approach of using an extra type
(`resources`) for purging: Every type may have some need to exclude stuff. You
dont want to erase system users by default, you dont want to erase system
groups by default and if you are purging hosts you may want to implement an
exclude so you at least leave the localhost entry in tact. This is currently
controlled with parameters of the resource type (the `unless_system_user`
parameter). That doesnt scale well. Maybe every type should just respond to a
`purge` method and the resource type should just have an `options` parameter
that is passed to to `purge` method.
----------------------------------------
Feature #7600: Need ability to remove all unmanaged resources
https://projects.puppetlabs.com/issues/7600
Author: Randall Hansen
Status: Investigating
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: puppetcamp-eu-2011
Branch:
This works, purging all unmanaged hosts entries:
resources { 'host':
purge => true,
noop => true,
}
We should have a similar property for all (most?) types.
--
*This ticket is a request for comment, coming out of a discussion at Puppet
Camp EU, 2011. No promises whatever about implementation, but there were
enough people interested to open a public discussion.*
--
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.