Been trying to write a script that will sign a cert for a new node, but I 
don't seem to be having any luck.  

Here is the code I have so far

[]::ServerCertificateValidationCallback = {

$console_server = 'puppetserver'

$node = "new-test-server.local"

$action = '{"desired_state":"signed"}'

$json = $action | ConvertTo-Json

$url = 

echo $url

$results = Invoke-RestMethod -Uri $url -body $json -method PUT -ContentType 

echo $results

I've spent most of the day trying to figure this one out. Any help would be 

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit
For more options, visit

Reply via email to