From 697402da24ca930b3608359a61b9872fdddc62d9 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 7 Feb 2008 12:08:55 -0500 Subject: Starting off the certmaster tree with most of the func code, shortly non-certmaster related parts will be removed, and other small parts added/tweaked --- scripts/Makefile | 20 ++++++++++ scripts/certmaster | 11 ++++++ scripts/certmaster-ca | 92 ++++++++++++++++++++++++++++++++++++++++++++++ scripts/func | 14 +++++++ scripts/func-create-module | 79 +++++++++++++++++++++++++++++++++++++++ scripts/func-inventory | 8 ++++ scripts/funcd | 10 +++++ 7 files changed, 234 insertions(+) create mode 100755 scripts/Makefile create mode 100755 scripts/certmaster create mode 100755 scripts/certmaster-ca create mode 100755 scripts/func create mode 100755 scripts/func-create-module create mode 100755 scripts/func-inventory create mode 100755 scripts/funcd (limited to 'scripts') diff --git a/scripts/Makefile b/scripts/Makefile new file mode 100755 index 0000000..a4cc7e1 --- /dev/null +++ b/scripts/Makefile @@ -0,0 +1,20 @@ + + +PYFILES = $(wildcard *.py) + +PYCHECKER = /usr/bin/pychecker +PYFLAKES = /usr/bin/pyflakes + +clean:: + @rm -fv *.pyc *~ .*~ *.pyo + @find . -name .\#\* -exec rm -fv {} \; + @rm -fv *.rpm + + +pychecker:: + @$(PYCHECKER) $(PYFILES) || exit 0 + +pyflakes:: +ifneq ($(PYFILES)x, x) + @$(PYFLAKES) $(PYFILES) || exit 0 +endif diff --git a/scripts/certmaster b/scripts/certmaster new file mode 100755 index 0000000..d5f677d --- /dev/null +++ b/scripts/certmaster @@ -0,0 +1,11 @@ +#!/usr/bin/python + +from func import certmaster + +import sys + +if __name__ == "__main__": + certmaster.main(sys.argv) + + + diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca new file mode 100755 index 0000000..b3e844a --- /dev/null +++ b/scripts/certmaster-ca @@ -0,0 +1,92 @@ +#!/usr/bin/python -tt +# sign/list keys +# --sign hostname hostname hostname +# --list # lists all csrs needing to be signed +# --list-all ? +# --clean? not sure what it will do + +import sys +import glob +import os + +import func +import func.certs +import func.certmaster + + + +from optparse import OptionParser + +def errorprint(stuff): + print >> sys.stderr, stuff + + +def parseargs(args): + usage = 'certmaster-ca