Jira (PDB-129) Make "puppet node clean --unexport" work with PuppetDB

1 view
Skip to first unread message

Kenneth Barber (JIRA)

unread,
May 15, 2015, 9:19:28 AM5/15/15
to puppe...@googlegroups.com
Kenneth Barber updated an issue
 
PuppetDB / New Feature PDB-129
Make "puppet node clean --unexport" work with PuppetDB
Change By: Kenneth Barber
Comment: [~cwalstrom] I'm not sure this is the best place to talk about this, hit me up on IRC or on puppet-users ... but basically you can use puppet node deactivate on its own to remove resources for a single node. The topic can have complexity, please use the proper forums instead of in a ticket.
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d)
Atlassian logo

Zee Alexander (JIRA)

unread,
May 15, 2015, 11:12:30 AM5/15/15
to puppe...@googlegroups.com
Zee Alexander commented on New Feature PDB-129
 
Re: Make "puppet node clean --unexport" work with PuppetDB

Owen Rodabaugh I'm fine closing this as wontfix, but your solution doesn't make sense.

> assume that exported resources which are present but not collected(don't exist in PDB) should be purged.

If an exported resource "doesn't exist in PDB" then we have no record of it, won't actually know it was exported, and won't be able to purge it. E.g. it'll just be another file, or user, or whatever on the system like any other.

Is there something I'm missing here?

You can use the resources resource to do this, sure, but that's definitely not equivalent functionality to --unexport for several reasons.

Firstly, sure, I can do:

resources { 'user':
  purge => true,
}

That's will definitely purge any users not still exported. However it will ALSO purge any other users not managed by puppet...even if they were never managed.

Secondly, there are resources that you could --unexport which you CANNOT purge. E.g.:

resources { 'file':
  purge => true,
}

What does that do? Nothing, of course, because having puppet be able to purge all the files on the system not managed by puppet would be bonkers.

So yeah, it's fine if we want to close this wontfix — I think automatically removing resources that are no longer exported is crazy. If you want to remove a resource, then write puppet code to remove it....but purge is nowhere near the same as --unexport.

Of course, maybe you're referring to something else I don't know about

Zee Alexander (JIRA)

unread,
May 15, 2015, 1:13:29 PM5/15/15
to puppe...@googlegroups.com
Zee Alexander commented on New Feature PDB-129

Reid Vandewiele I totally agree with you. We don't need unexport AND purge isn't the same as unexport. I just wanted to double check that we were correctly evaluating the situation.

If you need to remove resources, then manage them, don't magic them away

Owen Rodabaugh (JIRA)

unread,
May 28, 2015, 6:33:32 PM5/28/15
to puppe...@googlegroups.com

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:56:08 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: customer new-feature redmine
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages