voxpupuli / puppet-kmod

manage kernel module with puppet
Apache License 2.0
17 stars 63 forks source link

[4.0.1] blacklist function incomplete #111

Open mdc-webdb opened 5 months ago

mdc-webdb commented 5 months ago

Affected Puppet, Ruby, OS and module versions/distributions

The blacklist call only writes an file /etc/modprobe.d/blacklist.conf, which contains the line "blacklist " but this will be not enough. See: https://access.redhat.com/solutions/41278 To full black list an module two lines will be needed:

blacklist <modname>
install <modname> /bin/false

An fix can be, calling in the kmod::blacklist function also: kmod::install { $name : command => '/bin/false' }