By default, Fedora Rawhide uses a kernel with a lot of debug options enable. This is very useful for the development of Rawhide itself, but also causes a pretty significant performance penalty. Enable the fedora-rawhide-kernel-nodebug, with higher than default priority, to make sure the non-debug kernels are picked up instead of the debug ones. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- guests/files/fedora-rawhide-kernel-nodebug.repo | 8 ++++ guests/tasks/base.yml | 52 +++++++++++++++---------- 2 files changed, 39 insertions(+), 21 deletions(-) create mode 100644 guests/files/fedora-rawhide-kernel-nodebug.repo diff --git a/guests/files/fedora-rawhide-kernel-nodebug.repo b/guests/files/fedora-rawhide-kernel-nodebug.repo new file mode 100644 index 0000000..76198dc --- /dev/null +++ b/guests/files/fedora-rawhide-kernel-nodebug.repo @@ -0,0 +1,8 @@ +[fedora-rawhide-kernel-nodebug] +name=Rawhide kernels built without debugging turned on +baseurl=https://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/$basearch +enabled=1 +skip_if_unavailable=0 +metadata_expire=6h +gpgcheck=0 +priority=90 diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml index a71e66d..abfd6a1 100644 --- a/guests/tasks/base.yml +++ b/guests/tasks/base.yml @@ -33,6 +33,30 @@ - ( os_name == 'CentOS' or os_name == 'Fedora' ) +- name: Bootstrap the package module + command: apt-get install -y python-apt + args: + creates: /usr/lib/python2*/*-packages/apt + warn: no + when: + - package_format == 'deb' + +- name: Bootstrap the package module + command: dnf install -y python2-dnf + args: + creates: /usr/lib*/python2*/*-packages/dnf + warn: no + when: + - os_name == 'Fedora' + +- name: Permit file editing on SELinux-enabled systems + package: + name: libselinux-python + state: present + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + - name: Enable jessie-backports repository copy: src: files/jessie-backports.sources @@ -53,21 +77,15 @@ - os_name == 'Debian' - os_version == '8' -- name: Bootstrap the package module - command: apt-get install -y python-apt - args: - creates: /usr/lib/python2*/*-packages/apt - warn: no - when: - - package_format == 'deb' - -- name: Bootstrap the package module - command: dnf install -y python2-dnf - args: - creates: /usr/lib*/python2*/*-packages/dnf - warn: no +- name: Enable fedora-rawhide-kernel-nodebug repository + copy: + src: files/fedora-rawhide-kernel-nodebug.repo + dest: /etc/yum.repos.d/fedora-rawhide-kernel-nodebug.repo + owner: root + group: root when: - os_name == 'Fedora' + - os_version == 'Rawhide' - name: Update installed packages package: @@ -106,14 +124,6 @@ with_items: - nano -- name: Permit file editing on SELinux-enabled systems - package: - name: libselinux-python - state: present - when: - - ( os_name == 'CentOS' or - os_name == 'Fedora' ) - - name: Configure hostname hostname: name: '{{ inventory_hostname }}' -- 2.13.6 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list