diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-27 13:47:50 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-27 13:47:50 -0400 |
commit | 064afab85ea8ce7df11ad0e4b92eab8b431c90e3 (patch) | |
tree | db5281c14ece624553b8d8061dfa07f941a8a881 /overlord | |
parent | 72f973619e507a240359ed87c6f3597ed8bf22b4 (diff) | |
download | third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.tar.gz third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.tar.xz third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.zip |
move logger and config_data to func/func
update modules that need new location
modules/func_module.py: update to use new logger/config locations,
also go ahead and register as a real module, to shut up the
start up. It shouldn't hurt anything
Some minor import reordering at a couple places (I try to keep
at least system import alphabetical)
Diffstat (limited to 'overlord')
-rw-r--r-- | overlord/sslclient.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/overlord/sslclient.py b/overlord/sslclient.py index 463b8c6..2d2f38e 100644 --- a/overlord/sslclient.py +++ b/overlord/sslclient.py @@ -1,10 +1,12 @@ #!/usr/bin/python +import socket import sys import xmlrpclib import urllib from func import SSLCommon +from func import config_data class SSL_Transport(xmlrpclib.Transport): @@ -35,10 +37,15 @@ class SSLXMLRPCServerProxy(xmlrpclib.ServerProxy): class FuncServer(SSLXMLRPCServerProxy): - def __init__(self, uri): - self.pem = "/etc/pki/func/slave.pem" - self.crt = "/etc/pki/func/slave.cert" - self.ca = "/etc/pki/func/ca/funcmaster.crt" + def __init__(self, uri, pem=None, crt=None, ca=None): + + config_obj = config_data.Config() + self.config = config_obj.get() + + hn = socket.getfqdn() + self.key = "%s/%s.pem" % (self.config['cert_dir'], hn) + self.cert = "%s/%s.cert" % (self.config['cert_dir'], hn) + self.ca = "%s/ca.cert" % self.config['cert_dir'] SSLXMLRPCServerProxy.__init__(self, uri, self.pem, |