ansible-role-kojid/tasks/config.yml
2021-01-04 09:13:39 -07:00

71 lines
1.3 KiB
YAML

---
# kojid configuration
# 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
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
# 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
dest: /etc/kojid/kojid.conf
owner: root
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