diff --git a/tasks/koji/base_builder.yml b/tasks/koji/base_builder.yml index cc1a0d6110..be85caf170 100644 --- a/tasks/koji/base_builder.yml +++ b/tasks/koji/base_builder.yml @@ -89,8 +89,12 @@ action: service name=kojid enabled=on # action: service name=kojid enabled=on state=started -- name: copy over authorized keys for root - action: copy src="{{ files }}/kojibuilder/root_auth_keys" dest=/root/.ssh/authorized_keys mode=644 +- name: add root ssh key + authorized_key: user=root key="{{ item }}" + with_file: + - "{{ files }}/kojibuilder/root_auth_keys" + tags: + - config # idmapd and make sure it's set to run - name: idmapd.conf @@ -100,16 +104,19 @@ - name: enable nfs-related services and run them action: service name={{ item }} enabled=true state=started with_items: - - rpcidmapd - - rpcbind - nfs - - nfslock - name: route config for netapp network action: copy src="{{ files }}/kojibuilder/route-eth1" dest=/etc/sysconfig/network-scripts/route-eth1 +- name: check for netapp route + command: ip route show + register: netapproute + always_run: yes + - name: run netapp route command: /etc/sysconfig/network-scripts/ifup-routes eth1 + when: netapproute.stdout.find('10.5.88.0') != -1 - name: nfs mount points action: mount name=/mnt/fedora_koji src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/fedora_koji fstype=nfs opts=ro,hard,bg,intr,noatime,nodev,nosuid passno=0 dump=0 state=mounted diff --git a/tasks/koji/builder_kernel_config.yml b/tasks/koji/builder_kernel_config.yml index 239b4f16c9..94c10ae0a7 100644 --- a/tasks/koji/builder_kernel_config.yml +++ b/tasks/koji/builder_kernel_config.yml @@ -1,8 +1,14 @@ #- name: set kernel params for loopback partitioning # action: command /sbin/grubby --update-kernel=ALL --args=loop.max_part=256 +# +- name: check for max_loop + command: grep max_loop /etc/grub2.cfg + register: max_loop + always_run: yes - name: set kernel params for more loops action: command /sbin/grubby --update-kernel=ALL --args=max_loop=64 + when: max_loop.stdout.find('max_loop=64') != -1 - name: special pkgs for the x86_64 builders yum: state=installed pkg={{ item }}