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
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.sysctl:
|
2021-01-04 16:13:39 +00:00
|
|
|
name: vm.highmem_is_dirtyable
|
|
|
|
value: 1
|
|
|
|
state: present
|
|
|
|
sysctl_set: true
|
|
|
|
reload: true
|
|
|
|
when: ansible_architecture == 'armv7l'
|
|
|
|
|
2023-05-02 04:50:13 +00:00
|
|
|
- name: Set nofile limit to 10240
|
|
|
|
ansible.builtin.template:
|
|
|
|
template: 00-limit.conf.j2
|
2021-01-04 16:13:39 +00:00
|
|
|
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
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.template:
|
2021-01-04 08:17:40 +00:00
|
|
|
src: oz.cfg.j2
|
|
|
|
dest: /etc/oz/oz.cfg
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart_kojid
|
|
|
|
|
|
|
|
- name: runroot config
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.template:
|
2021-01-04 08:17:40 +00:00
|
|
|
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
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.template:
|
2021-01-04 16:13:39 +00:00
|
|
|
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
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.template:
|
2021-01-04 08:17:40 +00:00
|
|
|
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
|
2023-05-02 04:50:13 +00:00
|
|
|
ansible.builtin.template:
|
|
|
|
template: kojid.service.j2
|
2021-01-04 16:13:39 +00:00
|
|
|
dest: /etc/systemd/system/kojid.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify:
|
|
|
|
- reload_systemd
|
|
|
|
- restart_kojid
|