mirror of
https://github.com/rocky-linux/ansible-role-kojid.git
synced 2024-11-21 20:51:26 +00:00
additional configs
This commit is contained in:
parent
51ac7e0a6f
commit
bdf58f4c9c
@ -36,6 +36,7 @@ kojid_ca_bundle: /etc/pki/tls/certs/ca-bundle.crt
|
||||
kojid_keytab: /etc/kojid.keytab
|
||||
kojid_smtp_host: smtp.rockylinux.org
|
||||
kojid_allowed_scm: "git.centos.org:/* git.rockylinux.org:/*"
|
||||
kojid_bugzilla: https://bugs.rockylinux.org
|
||||
|
||||
kojid_maxjobs: 20
|
||||
kojid_minspace: 8192
|
||||
|
2
files/00-limit.conf
Normal file
2
files/00-limit.conf
Normal file
@ -0,0 +1,2 @@
|
||||
#<domain> <type> <item> <value>
|
||||
* - nofile 4096
|
17
files/kojid.service
Normal file
17
files/kojid.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Koji build server
|
||||
Documentation=https://docs.pagure.org/koji/server_howto/
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
TasksMax=infinity
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/sbin/kojid \
|
||||
--fg \
|
||||
--force-lock \
|
||||
--verbose
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -4,3 +4,7 @@
|
||||
service:
|
||||
name: kojid
|
||||
state: restarted
|
||||
|
||||
- name: reload_systemd
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
@ -1,7 +1,25 @@
|
||||
---
|
||||
# kojid configuration
|
||||
|
||||
# oz
|
||||
# sysctl and limits
|
||||
- name: set highmem_is_dirtyable on armv7 builders if applicable
|
||||
sysctl:
|
||||
name: vm.highmem_is_dirtyable
|
||||
value: 1
|
||||
state: present
|
||||
sysctl_set: true
|
||||
reload: true
|
||||
when: ansible_architecture == 'armv7l'
|
||||
|
||||
- name: Set nofile limit to 4096
|
||||
copy:
|
||||
src: 00-limit.conf
|
||||
dest: /etc/security/limits.d/00-limit.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
# oz and plugins
|
||||
- name: OZ Config
|
||||
template:
|
||||
src: oz.cfg.j2
|
||||
@ -20,6 +38,16 @@
|
||||
mode: '0644'
|
||||
notify: restart_kojid
|
||||
|
||||
# kojid base configuration
|
||||
- name: Configure koji.conf
|
||||
template:
|
||||
src: koji.conf.j2
|
||||
dest: /etc/koji.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: restart_kojid
|
||||
|
||||
- name: Configure kojid
|
||||
template:
|
||||
src: kojid.conf.j2
|
||||
@ -28,3 +56,15 @@
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: restart_kojid
|
||||
|
||||
# systemd override
|
||||
- name: Override kojid.service
|
||||
copy:
|
||||
src: kojid.service
|
||||
dest: /etc/systemd/system/kojid.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify:
|
||||
- reload_systemd
|
||||
- restart_kojid
|
||||
|
15
templates/koji.conf.j2
Normal file
15
templates/koji.conf.j2
Normal file
@ -0,0 +1,15 @@
|
||||
[koji]
|
||||
;url of XMLRPC server
|
||||
server = {{ kojid_hub_url }}
|
||||
|
||||
;url of web interface
|
||||
weburl = {{ kojid_web_url }}
|
||||
|
||||
;url of package download site
|
||||
topurl = {{ kojid_files_url }}
|
||||
|
||||
;path to the koji top directory
|
||||
topdir = {{ kojid_mount }}
|
||||
|
||||
; https ca, not for ssl auth
|
||||
serverca = {{ kojid_ca_bundle }}
|
10
templates/site-defaults.cfg
Normal file
10
templates/site-defaults.cfg
Normal file
@ -0,0 +1,10 @@
|
||||
config_opts['plugin_conf']['package_state_enable'] = False
|
||||
config_opts['plugin_conf']['ccache_enable'] = False
|
||||
config_opts['dnf_common_opts'] = ['--setopt=install_weak_deps=0']
|
||||
config_opts['macros']['%bugurl'] = '{{ kojid_bugzilla }}'
|
||||
config_opts['nosync'] = True
|
||||
config_opts['nosync_force'] = True
|
||||
config_opts['environment']['LANG'] = 'C.UTF-8'
|
||||
config_opts['use_bootstrap'] = True
|
||||
config_opts['yum_install_command'] += " -x devtoolset*"
|
||||
config_opts['dnf_warning'] = False
|
Loading…
Reference in New Issue
Block a user