Ask Your Question
0

Is there a remote method to list and clean a puppet cert on an opensource 3.6.2 master?

asked 2016-10-26 08:46:50 -0600

btoohey gravatar image

I would like to clean a puppet client's certificate on the master remotely from a script on the puppet client host.

edit retag flag offensive close merge delete

Comments

you're looking for the keyword „SSH public key authentication“

Kai Burghardt gravatar imageKai Burghardt ( 2016-10-26 12:38:25 -0600 )edit

what would you do with SSH? SSHing to a remote machine and do things is always an option, but rarely a good one

zwopiR gravatar imagezwopiR ( 2016-10-27 06:11:19 -0600 )edit

btoohey wrote „remotely from a script“. I assumed he*she/it meant a shell script. At least I keep my shell scripts as simple as possible, and if it gets more complicated, like using a library / API / ABI, I code a program in a whole programming language (not shell).

Kai Burghardt gravatar imageKai Burghardt ( 2016-10-27 20:21:35 -0600 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2016-10-27 06:09:43 -0600

zwopiR gravatar image

you can use the puppet http API: https://docs.puppet.com/puppet/3/refe...certificatestatus.html (double check the above documentation link, as it might be outdated for your puppet version - I was searching for an 3.4 documentation recently and just found that link)

edit flag offensive delete link more

Comments

You would need to make sure that the remote server has a key-pair with the appropriate permissions to execute that behavior.

DarylW gravatar imageDarylW ( 2016-10-27 08:00:49 -0600 )edit

bummer! chicken-egg-problem

zwopiR gravatar imagezwopiR ( 2016-10-27 08:30:10 -0600 )edit
0

answered 2016-10-27 15:10:35 -0600

btoohey gravatar image

I can't find any documentation that suggests there is an API for an opensource Puppet 3.6.2 implementation.

edit flag offensive delete link more

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: 2016-10-26 08:46:50 -0600

Seen: 60 times

Last updated: Oct 27 '16