summaryrefslogtreecommitdiffstats
path: root/puppethost.py
diff options
context:
space:
mode:
Diffstat (limited to 'puppethost.py')
-rwxr-xr-xpuppethost.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppethost.py b/puppethost.py
index 3398584..f524c37 100755
--- a/puppethost.py
+++ b/puppethost.py
@@ -185,6 +185,10 @@ class PuppetHost(object):
def files(self):
hostname = self.hostname
ssldir = self.opts['ssldir']
+ cert = '%s/certs/%s.pem' % (ssldir, hostname)
+ casigned = '%s/ca/signed/%s.pem' % (ssldir, hostname)
+ if not os.path.exists(cert) and os.path.exists(casigned):
+ os.symlink(casigned.replace(ssldir, '..'), cert)
return {
'crl': '%s/ca/ca_crl.pem' % ssldir,
'cacert': '%s/certs/ca.pem' % ssldir,