prepping for idea

This commit is contained in:
nazunalika 2021-02-10 18:11:49 -07:00
parent 70a563e7b5
commit 53ec6fe05a
Signed by: label
GPG Key ID: CB6D9706D138D190
11 changed files with 209 additions and 0 deletions

View File

@ -63,3 +63,8 @@ kojid_buildtools_repo_gpgkey: RPM-GPG-KEY-Rocky-Infra
# SSH Pubkeys, define them in a playbook
# mockbuilder_pub_key
# kojibuilder_pub_key
# Are the kojid builders "shared" builders between different ecosystems
# "production" and "staging" are the predetermined names and are sorted
# as such.
kojid_shared_builders: false

View File

@ -4,7 +4,26 @@
service:
name: kojid
state: restarted
enabled: true
- name: disable_kojid
service:
name: kojid
state: stopped
enabled: false
- name: reload_systemd
systemd:
daemon_reload: true
- name: restart_kojid_staging
service:
name: kojid_staging
state: restarted
enabled: true
- name: restart_kojid_production
service:
name: kojid_production
state: restarted
enabled: true

View File

@ -12,3 +12,8 @@
- name: Configure kojid
import_tasks: config.yml
when: not kojid_shared_builders
- name: Configure shared kojid
import_tasks: shared/config_shared.yml
when: kojid_shared_builders

View File

@ -0,0 +1,2 @@
---
# kojid shared configuration

View File

@ -0,0 +1,2 @@
---
# Shared Storage

View File

@ -0,0 +1,15 @@
[koji]
;url of XMLRPC server
server = {{ kojid_production_hub_url }}
;url of web interface
weburl = {{ kojid_production_web_url }}
;url of package download site
topurl = {{ kojid_production_files_url }}
;path to the koji top directory
topdir = {{ kojid_production_mount }}
; https ca, not for ssl auth
serverca = {{ kojid_ca_bundle }}

View File

@ -0,0 +1,36 @@
[kojid]
sleeptime=15
maxjobs={{ kojid_maxjobs }}
minspace={{ kojid_minspace }}
topdir={{ kojid_production_mount }}
workdir=/tmp/koji
mockdir=/var/lib/mock
mockuser=kojibuilder
vendor={{ kojid_vendor }}
packager={{ kojid_packager }}
mockhost=redhat-linux-gnu
server={{ kojid_production_hub_url }}
topurl={{ kojid_production_files_url }}
use_createrepo_c=True
from_addr=Koji Build System <buildsys@rockylinux.org>
admin_emails="infrastructure@rockylinux.org"
;smtphost={{ kojid_smtp_host }}
;smtp_user={{ kojid_smtp_user }}
;smtp_pass={{ kojid_smtp_pass }}
host_principal_format = compile/%s@ROCKYLINUX.ORG
keytab = {{ kojid_keytab }}
serverca = {{ kojid_ca_bundle }}
; Modify
allowed_scms={{ kojid_allowed_scm }}
; Other settings
build_arch_can_fail = true
{% set plugins = [] %}
{% if kojid_runroot_builder %}
{{ plugins.append("runroot") }}
{% endif %}
plugins = {{ plugins | join(" ") }}

View File

@ -0,0 +1,37 @@
[paths]
; comma-delimited list of default mountpoints
; They will be mounted during each run. It is suggested, that these
; paths has readonly options and are made writable via extra_mounts
; parameter for individual calls.
default_mounts = {{ kojid_production_mount }}
; comma-delimited list of safe roots.
; Each extra_mount need to start with some of these prefixes. Other paths are
; not allowed for mounting. Only absolute paths are allowed here, no
; wildcards.
safe_roots = {{ kojid_production_mount }}/compose,/srv/odcs
; path substitutions is tuple per line, delimited by comma, order is
; important.
; Path prefixes which can be substituted for other mountpoints.
; Usable for locations symlinked from other mounts.
; path_subs = /mnt/archive/prehistory/,/mnt/prehistoric_disk/archive/prehistory
; mount origins, order is important here, ordered by best catch
[path0]
mountpoint = {{ kojid_production_mount }}/compose
path = {{ kojid_production_mount }}/compose
fstype = bind
options = bind
[path1]
mountpoint = {{ kojid_production_mount }}
path = {{ kojid_production_mount }}
fstype = bind
options = bind
[path2]
mountpoint = /srv/odcs
path = /srv/odcs
fstype = bind
options = bind

View File

@ -0,0 +1,15 @@
[koji]
;url of XMLRPC server
server = {{ kojid_staging_hub_url }}
;url of web interface
weburl = {{ kojid_staging_web_url }}
;url of package download site
topurl = {{ kojid_staging_files_url }}
;path to the koji top directory
topdir = {{ kojid_staging_mount }}
; https ca, not for ssl auth
serverca = {{ kojid_ca_bundle }}

View File

@ -0,0 +1,36 @@
[kojid]
sleeptime=15
maxjobs={{ kojid_maxjobs }}
minspace={{ kojid_minspace }}
topdir={{ kojid_staging_mount }}
workdir=/tmp/koji
mockdir=/var/lib/mock
mockuser=kojibuilder
vendor={{ kojid_vendor }}
packager={{ kojid_packager }}
mockhost=redhat-linux-gnu
server={{ kojid_staging_hub_url }}
topurl={{ kojid_staging_files_url }}
use_createrepo_c=True
from_addr=Koji Build System <buildsys@rockylinux.org>
admin_emails="infrastructure@rockylinux.org"
;smtphost={{ kojid_smtp_host }}
;smtp_user={{ kojid_smtp_user }}
;smtp_pass={{ kojid_smtp_pass }}
host_principal_format = compile/%s@ROCKYLINUX.ORG
keytab = {{ kojid_keytab }}
serverca = {{ kojid_ca_bundle }}
; Modify
allowed_scms={{ kojid_allowed_scm }}
; Other settings
build_arch_can_fail = true
{% set plugins = [] %}
{% if kojid_runroot_builder %}
{{ plugins.append("runroot") }}
{% endif %}
plugins = {{ plugins | join(" ") }}

View File

@ -0,0 +1,37 @@
[paths]
; comma-delimited list of default mountpoints
; They will be mounted during each run. It is suggested, that these
; paths has readonly options and are made writable via extra_mounts
; parameter for individual calls.
default_mounts = {{ kojid_staging_mount }}
; comma-delimited list of safe roots.
; Each extra_mount need to start with some of these prefixes. Other paths are
; not allowed for mounting. Only absolute paths are allowed here, no
; wildcards.
safe_roots = {{ kojid_staging_mount }}/compose,/srv/odcs
; path substitutions is tuple per line, delimited by comma, order is
; important.
; Path prefixes which can be substituted for other mountpoints.
; Usable for locations symlinked from other mounts.
; path_subs = /mnt/archive/prehistory/,/mnt/prehistoric_disk/archive/prehistory
; mount origins, order is important here, ordered by best catch
[path0]
mountpoint = {{ kojid_staging_mount }}/compose
path = {{ kojid_staging_mount }}/compose
fstype = bind
options = bind
[path1]
mountpoint = {{ kojid_staging_mount }}
path = {{ kojid_staging_mount }}
fstype = bind
options = bind
[path2]
mountpoint = /srv/odcs
path = /srv/odcs
fstype = bind
options = bind