2021-01-04 08:17:40 +00:00
|
|
|
---
|
|
|
|
# kojid configuration
|
|
|
|
|
2021-01-04 16:13:39 +00:00
|
|
|
# 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
|
2021-01-04 08:17:40 +00:00
|
|
|
- name: OZ Config
|
|
|
|
template:
|
|
|
|
src: oz.cfg.j2
|
|
|
|
dest: /etc/oz/oz.cfg
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart_kojid
|
|
|
|
|
|
|
|
- name: runroot config
|
|
|
|
template:
|
|
|
|
src: runroot.conf.j2
|
|
|
|
dest: /etc/kojid/plugins/runroot.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart_kojid
|
|
|
|
|
2021-01-04 16:13:39 +00:00
|
|
|
# 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
|
|
|
|
|
2021-01-04 08:17:40 +00:00
|
|
|
- name: Configure kojid
|
|
|
|
template:
|
|
|
|
src: kojid.conf.j2
|
|
|
|
dest: /etc/kojid/kojid.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart_kojid
|
2021-01-04 16:13:39 +00:00
|
|
|
|
|
|
|
# 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
|