projects
/
certmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minion-to-minion support, certmaster half.
[certmaster.git]
/
certmaster
/
certmaster.py
diff --git
a/certmaster/certmaster.py
b/certmaster/certmaster.py
index
506a029
..
58cb50b
100644
(file)
--- a/
certmaster/certmaster.py
+++ b/
certmaster/certmaster.py
@@
-276,6
+276,13
@@
class CertMaster(object):
return signed_certs
return signed_certs
+ def get_peer_certs(self):
+ """
+ Returns a list of all certs under peerroot
+ """
+ myglob = os.path.join(self.cfg.peerroot, '*.%s' % self.cfg.cert_extension)
+ return glob.glob(myglob)
+
# return a list of the cert hash string we use to identify systems
def get_cert_hashes(self, hostglobs=None):
certglob = "%s/*.cert" % (self.cfg.certroot)
# return a list of the cert hash string we use to identify systems
def get_cert_hashes(self, hostglobs=None):
certglob = "%s/*.cert" % (self.cfg.certroot)