How to change node hostname?

105 views
Skip to first unread message

Sandra Schlichting

unread,
Sep 25, 2012, 6:06:40 AM9/25/12
to puppet...@googlegroups.com
Dear readers,

I have changed the hostname of a node, and so the question is:

How do I delete the old puppet certificate on the node and master?

Hugs,
Sandra =)


Bernd Adamowicz

unread,
Sep 25, 2012, 6:10:37 AM9/25/12
to puppet...@googlegroups.com
On master use:
puppetca --clean your.host.name

On the agent I use this to delete all keys and certificates.
find /var/lib/puppet -name "*" -type f -exec rm -f {} \;
There might be a more elegant solution.

Regards,
Bernd
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/OLHRwbyab6MJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Trevor Vaughan

unread,
Sep 25, 2012, 8:51:41 AM9/25/12
to puppet...@googlegroups.com
You just need to kill /var/lib/pupet/ssl and restart your daemons/run
puppet again.

Be *very* careful to test this first!

Trevor
--
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvau...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --
Reply all
Reply to author
Forward
0 new messages