コード例 #1
0
 def __init__(self):
     host = cfg.server.host
     port = int(cfg.server.port)
     cert = os.path.join(
         cfg.filesystem.id_cert_dir,
         cfg.filesystem.id_cert_filename)
     connection = PulpConnection(host, port, cert_filename=cert)
     Bindings.__init__(self, connection)
コード例 #2
0
ファイル: model.py プロジェクト: kbotc/pulp
 def __init__(self):
     cfg = Config(CONFIG_PATH)
     server = cfg['server']
     host = server['host']
     port = int(server['port'])
     files = cfg['filesystem']
     cert = os.path.join(files['id_cert_dir'], files['id_cert_filename'])
     connection = PulpConnection(host, port, cert_filename=cert)
     PulpBindings.__init__(self, connection)
コード例 #3
0
 def __init__(self):
     cfg = Config(CONFIG_PATH)
     server = cfg['server']
     host = server['host']
     port = int(server['port'])
     files = cfg['filesystem']
     cert = os.path.join(files['id_cert_dir'], files['id_cert_filename'])
     connection = PulpConnection(host, port, cert_filename=cert)
     PulpBindings.__init__(self, connection)
コード例 #4
0
 def __init__(self):
     host = cfg['server']['host']
     port = int(cfg['server']['port'])
     cert = os.path.join(
         cfg['filesystem']['id_cert_dir'],
         cfg['filesystem']['id_cert_filename'])
     ssl = cfg.parse_bool(cfg['server']['verify_ssl'])
     connection = PulpConnection(host, port, cert_filename=cert, verify_ssl=ssl)
     Bindings.__init__(self, connection)
コード例 #5
0
ファイル: pulp-profile-update.py プロジェクト: ulif/pulp_rpm
 def __init__(self):
     host = cfg['server']['host']
     port = int(cfg['server']['port'])
     cert = os.path.join(
         cfg['filesystem']['id_cert_dir'],
         cfg['filesystem']['id_cert_filename'])
     ssl = cfg.parse_bool(cfg['server']['verify_ssl'])
     connection = PulpConnection(host, port, cert_filename=cert, verify_ssl=ssl)
     Bindings.__init__(self, connection)
コード例 #6
0
ファイル: pulpplugin.py プロジェクト: AndreaGiardini/pulp
 def __init__(self):
     host = cfg.server.host
     port = int(cfg.server.port)
     verify_ssl = parse_bool(cfg.server.verify_ssl)
     ca_path = cfg.server.ca_path
     cert = os.path.join(cfg.filesystem.id_cert_dir, cfg.filesystem.id_cert_filename)
     connection = PulpConnection(host, port, cert_filename=cert, verify_ssl=verify_ssl,
                                 ca_path=ca_path)
     Bindings.__init__(self, connection)
コード例 #7
0
ファイル: pulpplugin.py プロジェクト: omps/pulp
 def __init__(self):
     host = cfg.server.host
     port = int(cfg.server.port)
     verify_ssl = parse_bool(cfg.server.verify_ssl)
     ca_path = cfg.server.ca_path
     cert = os.path.join(cfg.filesystem.id_cert_dir, cfg.filesystem.id_cert_filename)
     connection = PulpConnection(host, port, cert_filename=cert, verify_ssl=verify_ssl,
                                 ca_path=ca_path)
     Bindings.__init__(self, connection)
コード例 #8
0
ファイル: model.py プロジェクト: kbotc/pulp
 def __init__(self):
     host = socket.gethostname()
     port = 443
     cert = '/etc/pki/pulp/nodes/local.crt'
     connection = PulpConnection(host, port, cert_filename=cert)
     PulpBindings.__init__(self, connection)
コード例 #9
0
ファイル: pulpplugin.py プロジェクト: tomlanyon/pulp
 def __init__(self):
     host = cfg.rest.host
     port = int(cfg.rest.port)
     cert = cfg.rest.clientcert
     connection = PulpConnection(host, port, cert_filename=cert)
     Bindings.__init__(self, connection)
コード例 #10
0
 def __init__(self):
     host = socket.gethostname()
     port = 443
     cert = '/etc/pki/pulp/nodes/local.crt'
     connection = PulpConnection(host, port, cert_filename=cert)
     PulpBindings.__init__(self, connection)
コード例 #11
0
ファイル: pulpplugin.py プロジェクト: aweiteka/pulp
 def __init__(self):
     host = cfg.server.host
     port = int(cfg.server.port)
     cert = os.path.join(cfg.filesystem.id_cert_dir, cfg.filesystem.id_cert_filename)
     connection = PulpConnection(host, port, cert_filename=cert)
     Bindings.__init__(self, connection)