diff --git a/manifests/enterprise/install/nix.pp b/manifests/enterprise/install/nix.pp index 33b220ca..41ded0e6 100644 --- a/manifests/enterprise/install/nix.pp +++ b/manifests/enterprise/install/nix.pp @@ -30,8 +30,13 @@ } } - # Required for splunk 7.2.4.2 - if $splunk::params::manage_net_tools and versioncmp($splunk::enterprise::version, '7.2.4.2') >= 0 { + # Required for splunk from 7.2.4.2 until 8.0.0 + if ( + $splunk::params::manage_net_tools and + $facts['kernel'] == 'Linux' and + versioncmp($splunk::enterprise::version, '7.2.4.2') >= 0 and + versioncmp($splunk::enterprise::version, '8.0.0') == -1 + ) { stdlib::ensure_packages(['net-tools'], { 'ensure' => 'present', }) diff --git a/manifests/forwarder/install.pp b/manifests/forwarder/install.pp index 4d64bda2..37486398 100644 --- a/manifests/forwarder/install.pp +++ b/manifests/forwarder/install.pp @@ -61,8 +61,13 @@ } } - # Required for splunk 7.2.4.2 - if $splunk::params::manage_net_tools and $facts['kernel'] == 'Linux' and (versioncmp($splunk::forwarder::version, '7.2.4.2') >= 0) { + # Required for splunk from 7.2.4.2 until 8.0.0 + if ( + $splunk::params::manage_net_tools and + $facts['kernel'] == 'Linux' and + versioncmp($splunk::enterprise::version, '7.2.4.2') >= 0 and + versioncmp($splunk::enterprise::version, '8.0.0') == -1 + ) { stdlib::ensure_packages(['net-tools'], { 'ensure' => 'present', })