openqa_worker: install and enable rngd on some worker hosts
Some of the worker hosts have hardware RNGs (but not the x86_64 ones). Install rng-tools and enable rngd.service on these to hopefully help with the Rawhide RNG issue. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
c75e8777c5
commit
38a6abeae5
4 changed files with 23 additions and 0 deletions
|
@ -20,3 +20,6 @@ sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
|
|||
ansible_ifcfg_whitelist: ['eth0']
|
||||
|
||||
openqa_workers: 3
|
||||
|
||||
# has an HW RNG, so let's have rngd
|
||||
openqa_rngd: True
|
||||
|
|
|
@ -13,3 +13,6 @@ nrpe_procs_crit: 300
|
|||
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
|
||||
|
||||
openqa_workers: 3
|
||||
|
||||
# has an HW RNG, so let's have rngd
|
||||
openqa_rngd: True
|
||||
|
|
|
@ -20,3 +20,6 @@ ansible_ifcfg_whitelist: ['eth2']
|
|||
|
||||
# this is a powerful machine, can handle more openQA workers
|
||||
openqa_workers: 8
|
||||
|
||||
# has an HW RNG, so let's have rngd
|
||||
openqa_rngd: True
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
# - openqa_tap
|
||||
## bool - whether this is the tap-enabled host or not
|
||||
## each deployment should have *one* tap-capable worker host
|
||||
# - openqa_rngd
|
||||
## string - if set to any value, rng-tools package will be
|
||||
## installed and rngd.service enabled/started
|
||||
|
||||
- name: Install required packages (testing)
|
||||
dnf: name={{ item }} state=present enablerepo="updates-testing"
|
||||
|
@ -39,6 +42,12 @@
|
|||
- packages
|
||||
when: "ansible_architecture is defined and ansible_architecture == 'aarch64'"
|
||||
|
||||
- name: Install rng-tools (if specified by openqa_rngd var)
|
||||
dnf: name=rng-tools state=present
|
||||
tags:
|
||||
- packages
|
||||
when: "openqa_rngd is defined and openqa_rngd"
|
||||
|
||||
- name: Install script to set /dev/kvm perms and disable SMT (ppc64 only)
|
||||
copy: src=openqa-ppc64-prep.sh dest=/etc/cron.hourly/openqa-ppc64-prep owner=root group=root mode=0755
|
||||
when: "ansible_architecture is defined and ansible_architecture == 'ppc64le'"
|
||||
|
@ -56,6 +65,11 @@
|
|||
service: name=openqa-ppc64-prep enabled=yes state=started
|
||||
when: "ansible_architecture is defined and ansible_architecture == 'ppc64le'"
|
||||
|
||||
- name: Enable rngd.service (if specified by openqa_rngd var)
|
||||
service: name=rngd enabled=yes state=started
|
||||
tags:
|
||||
when: "openqa_rngd is defined and openqa_rngd"
|
||||
|
||||
- import_tasks: nfs-client.yml
|
||||
when: openqa_hostname is defined and openqa_hostname != "localhost"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue