Skip to content

Commit

Permalink
Merge pull request #37 from DataDog/paulcacheux/fix-centos-kernel-devel
Browse files Browse the repository at this point in the history
CentOS: install kernel-devel instead of kernel-headers
  • Loading branch information
paulcacheux authored Feb 17, 2022
2 parents 054046d + dd66c50 commit 6157c35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion rpm/centos.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func getRedhatRelease() (string, error) {
}

func (b *CentOSBackend) GetKernelHeaders(directory string) error {
pkgNevra := "kernel-headers-" + b.target.Uname.Kernel
pkgNevra := "kernel-devel-" + b.target.Uname.Kernel

// First try with the 'base' and 'updates' repositories.
// This should work if the user is using the latest minor version
Expand Down
9 changes: 0 additions & 9 deletions tests/molecule/resources/playbooks/verify-headers-centos.yml

This file was deleted.

7 changes: 2 additions & 5 deletions tests/molecule/resources/playbooks/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,5 @@
- include_tasks: verify-headers.yml
when: not (ansible_distribution is defined and (ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora'))

- include_tasks: verify-headers-centos.yml
when: ansible_distribution is defined and ansible_distribution == 'CentOS'

- include_tasks: verify-headers-fedora.yml
when: ansible_distribution is defined and ansible_distribution == 'Fedora'
- include_tasks: verify-headers-fedora-centos.yml
when: ansible_distribution is defined and (ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora')

0 comments on commit 6157c35

Please sign in to comment.