puppet-splunk icon indicating copy to clipboard operation
puppet-splunk copied to clipboard

change scope of resource override

Open dacron opened this issue 4 years ago • 3 comments

Pull Request (PR) description

Pull request fixes a resource override scoping issue in splunk::forwarder::install.

When being installed on a machine with no existing installation of the net-tools package, the generic override of::

Package  {
  source         => $splunk::forwarder::package_provider ? {
    'chocolatey' => undef,
    default      => $splunk::forwarder::manage_package_source ? {
      true  => pick($_staged_package, $_package_source),
      false => $_package_source,
    }
  },
}

Results in a net-tools resource of:

package { 'net-tools':
  ensure => 'present',
  source => $splunk::forwarder::manage_package_source,
  before => Package[splunkforwarder],
}

This Pull Request (PR) fixes the following issues

n/a.

dacron avatar Apr 30 '20 09:04 dacron