Hi,
to re-iterate the point: Doing this is a Very Bad Idea in terms of security.
If you don't care at all, the script would look like the following. PHP
pseudocode example, choose your poison at will, of course.
<?php
system('sudo puppet cert clean ' . $_GET['node']);
You can invoke it e.g. using
wget -O/dev/null
https://your.master.fqdn/blast_cert?node=`puppet agent
--configprint certname`
to remove the certificate of the machine that is calling.
But again - please consider creating a secure channel from whatever
infrastructural component that is responsible for the re-provisioning,
so that the old certificates can be removed in a safe fashion.
HTH,
Felix
> <
https://groups.google.com/forum/#%21topic/puppet-users/vTLcGA87buo>
> /"OK, just had to post this! I found a solution to my issues that may
> functionality is included by default in puppet."/
> /
> /