diff --git a/puppet-manifests/src/modules/platform/manifests/config.pp b/puppet-manifests/src/modules/platform/manifests/config.pp index 51e86a04f..fadf19b12 100644 --- a/puppet-manifests/src/modules/platform/manifests/config.pp +++ b/puppet-manifests/src/modules/platform/manifests/config.pp @@ -269,6 +269,21 @@ class platform::config::file::irq { match_for_absence => true, } } + + if $::platform::params::irq_work_priority { + file_line { "${platform_conf} irq_work_priority": + path => $platform_conf, + line => "irq_work_priority=${::platform::params::irq_work_priority}", + match => '^irq_work_priority=', + } + } else { + file_line { "${platform_conf} irq_work_priority": + ensure => absent, + path => $platform_conf, + match => '^irq_work_priority=', + match_for_absence => true, + } + } } # Runtime manifest updates /etc/platform/platform.conf to add or remove kernel diff --git a/puppet-manifests/src/modules/platform/manifests/params.pp b/puppet-manifests/src/modules/platform/manifests/params.pp index e04412431..3a1f20de0 100644 --- a/puppet-manifests/src/modules/platform/manifests/params.pp +++ b/puppet-manifests/src/modules/platform/manifests/params.pp @@ -33,6 +33,7 @@ class platform::params ( $apparmor = 'disabled', $sctp_autoload = 'enabled', $ksoftirqd_priority = undef, + $irq_work_priority = undef, ) { $ipv4 = 4 $ipv6 = 6