From ac857ef91ee4138fa868264115efb72ee8b8c261 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Wed, 26 Nov 2008 10:07:13 -0500 Subject: Symlink certificates from ca/signed to certs/ There may be certificates in ca/signed that are not also in certs. Creating symbolic links allows us to use those certificates. --- puppethost.py | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit