disable NIC offloading on copr machines [RHBZ#1268192]
This commit is contained in:
parent
c7afcfb8a5
commit
f45bdd96c5
2 changed files with 15 additions and 0 deletions
|
@ -18,10 +18,14 @@
|
|||
- libsemanage-python
|
||||
- yum
|
||||
- scl-utils-build
|
||||
- ethtool
|
||||
# - fedpkg-copr
|
||||
# BZ 1241507
|
||||
- shell: yum-deprecated install -y fedpkg-copr || yum install -y fedpkg-copr
|
||||
|
||||
- name: disable offloading
|
||||
command: ethtool -K eth0 tso off gro off gso off
|
||||
|
||||
- get_url: url=https://kojipkgs.fedoraproject.org//packages/mock/1.2.12/1.fc21/noarch/mock-1.2.12-1.fc21.noarch.rpm dest=/tmp/
|
||||
- yum: state=present name=/tmp/mock-1.2.12-1.fc21.noarch.rpm
|
||||
|
||||
|
|
|
@ -46,6 +46,17 @@
|
|||
tags:
|
||||
- packages
|
||||
|
||||
- name: install ethtool
|
||||
yum: state=present pkg=ethtool
|
||||
tags:
|
||||
- packages
|
||||
- name: disable offloading
|
||||
command: ethtool -K eth0 tso off gro off gso off
|
||||
- name: disable offloading (persitently)
|
||||
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth0 backup=yes state=present line='ETHTOOL_OPTS="-K ${DEVICE} tso off gro off gso off"'
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: make sure our resolv.conf is the one being used - set PEERDNS=no in /etc/sysconfig/network
|
||||
lineinfile: dest=/etc/sysconfig/network create=yes backup=yes state=present line='PEERDNS=no' regexp=^PEERDNS=
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue