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'
|
|
|
|
|
|
|
|
- name: Set nofile limit to 4096
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.copy:
|
2021-01-04 16:13:39 +00:00
|
|
|
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
|
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
|
2022-03-28 02:48:48 +00:00
|
|
|
ansible.builtin.copy:
|
2021-01-04 16:13:39 +00:00
|
|
|
src: kojid.service
|
|
|
|
dest: /etc/systemd/system/kojid.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify:
|
|
|
|
- reload_systemd
|
|
|
|
- restart_kojid
|