Issue #16103 has been reported by Joe McDonagh.

----------------------------------------
Bug #16103: puppet cert -g fails weirdly if executed with no terminal, such as 
with Open4.popen
https://projects.puppetlabs.com/issues/16103

Author: Joe McDonagh
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Hi, I have a script that I use to instantiate new nodes, and I do server-side 
cert generation so part of the process is to call puppet cert -g. I recently 
re-worked the script to be a little more robust, and I replaced all the 
backtick executions with Open4.popen. Now, on the part where certs are 
generated, it makes the request, and keys, but the request isn't signed or 
removed, there is no cert at all, and nothing is put out to stderr or stdout. I 
suspect it has to do with the Puppet::Util::Log.newdestination :console line, 
since there is no console maybe something down the line breaks, but the code is 
a little hard for me to follow down there. To me, this script should be able to 
run console or not, since it makes automation pretty easy if you're generating 
keys from a central spot, and handling distribution through conventional means 
yourself.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to