Beispiel #1
0
with cfg.mod_aconf("/etc/httpd/conf.d/ssl.conf") as a:
    vh = a["VirtualHost"]
    vh["SSLCertificateFile"] = [cred.user["kojihub"].crt]
    vh["SSLCertificateKeyFile"] = [cred.user["kojihub"].key]
    vh["SSLCertificateChainFile"] = [cred.ca_crt]
    vh["SSLCACertificateFile"] = [cred.ca_crt]
    vh["SSLVerifyClient"] = ["require"]
    vh["SSLVerifyDepth"] = ["10"]

koji_url = dict()
koji_url["web"] = "http://localhost/koji"
koji_url["top"] = "http://localhost/kojifiles"
koji_url["hub"] = "http://localhost/kojihub"

with cfg.mod_ini("/etc/koji-hub/hub.conf") as ini:
    ini.hub.DBHost = "kojidatabase"
    ini.hub.DNUsernameComponent = "CN"
    ini.hub.ProxyDNs = str(cred.user["kojiweb"].subject)
    ini.hub.KojiWebURL = koji_url["web"]
    ini.hub.DisableNotifications = True
    ini.hub.EnableMaven = True

# /mnt/koji filesystem is handled by docker as a docker volume

# selinux is disabled in the official CentOS docker images

#
# Koji CLI
#
Beispiel #2
0
pkg.install("https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm")

#
# Kojid (Koji Builder)
#

log.info("Install Koji Builder")
pkg.install("koji-builder")

koji_url = dict()
koji_url["web"] = "http://koji/koji"
koji_url["top"] = "http://koji/kojifiles"
koji_url["hub"] = "http://koji/kojihub"

log.info("Configure Koji Builder")
with cfg.mod_ini("/etc/kojid/kojid.conf") as i:
    i.kojid.sleeptime = 2
    i.kojid.maxjobs = 20
    i.kojid.server = koji_url["hub"]
    i.kojid.topurl = koji_url["top"]
#   i.kojid.cert is set at runtime
    i.kojid.ca = cred.ca_crt
    i.kojid.serverca = cred.ca_crt
    i.kojid.smtphost = "koji"
    i.kojid.from_addr = "Koji Build System <buildsys@kojibuilder>"

#
# Koji CLI
#

log.info("Configure Koji CLI")
Beispiel #3
0
with cfg.mod_aconf("/etc/httpd/conf.d/ssl.conf") as a:
    vh = a["VirtualHost"]
    vh["SSLCertificateFile"] = [cred.user["kojihub"].crt]
    vh["SSLCertificateKeyFile"] = [cred.user["kojihub"].key]
    vh["SSLCertificateChainFile"] = [cred.ca_crt]
    vh["SSLCACertificateFile"] = [cred.ca_crt]
    vh["SSLVerifyClient"] = ["require"]
    vh["SSLVerifyDepth"] = ["10"]

koji_url = dict()
koji_url["web"] = "http://localhost/koji"
koji_url["top"] = "http://localhost/kojifiles"
koji_url["hub"] = "http://localhost/kojihub"

with cfg.mod_ini("/etc/koji-hub/hub.conf") as ini:
    ini.hub.DBHost = "kojidatabase"
    ini.hub.DNUsernameComponent = "CN"
    ini.hub.ProxyDNs = str(cred.user["kojiweb"].subject)
    ini.hub.KojiWebURL = koji_url["web"]
    ini.hub.DisableNotifications = True
    ini.hub.EnableMaven = True

# /mnt/koji filesystem is handled by docker as a docker volume

# selinux is disabled in the official CentOS docker images

#
# Koji CLI
#