Ask Your Question
4

How to delete a node from Puppet?

asked 2013-03-29 10:36:01 -0500

Keith gravatar image

I have puppet enterprise installed and am evaluating it (in conjunction with Razor). I have been using the web console to delete nodes that I am removing from puppet enterprise. I would have thought that deleting the node from the web console would remove the node from puppet. However, according to the puppet license information, it thinks I have SEVEN active nodes, even though there is only ONE listed on the web console.

How is it possible to remove/delete a node from Puppet Enterpise? How can I list what nodes are registered?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
8

answered 2013-03-29 13:43:26 -0500

jonn gravatar image

PE counts an active node as one for which it has an valid, signed certificate in its internal certificate authority. So if you run:

sudo puppet cert list --all | grep -v pe-internal-

on your master, you will get a list of active nodes. (Certificates starting with "pe-internal-" are owned by Puppet Enterprise tools, and are not counted for licensing purposes.)

If you want to get rid of a node completely from the CA, you can run:

sudo puppet cert clean <node>

This will remove the certificate from the CA, and it should then no longer count as an active node.

edit flag offensive delete link more

Comments

A cert can be in one of 4 states: waiting to be signed, signed, revoked, non-existent. It's very possible that the dashboard only revokes a cert, and doesn't ...(more)

Ancillas gravatar imageAncillas ( 2013-03-29 17:11:33 -0500 )edit

I use PE 3.1. I first deleted a node from the Dashboard console, ran './puppet-enterprise-uninstaller -p' on the agent host, and ran 'puppet cert clean <node certname="">' on the ...(more)

Pindish gravatar imagePindish ( 2013-12-29 16:04:33 -0500 )edit

Run the command puppet node deactivate <certname> to actually lower the license count. From https://projects.reductivelabs.com/issues/23421

skibum55 gravatar imageskibum55 ( 2014-01-15 11:24:40 -0500 )edit

would it be possible to do that for a large batch of nodes using API/RESTFull call?

Walid Shaari gravatar imageWalid Shaari ( 2015-01-26 01:06:40 -0500 )edit

This should be asked as a separate question, but the short answer is yes. https://docs.puppetlabs.com/guides/rest_api.html#certificate-status

Ancillas gravatar imageAncillas ( 2015-01-26 17:34:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-03-29 10:36:01 -0500

Seen: 16,792 times

Last updated: Mar 29 '13