Skip to content

Commit

Permalink
Add upgrade/version handling for splunkforwarder
Browse files Browse the repository at this point in the history
- Change "ensure" to an explicit version (otherwise only the file in /opt/staging will be added when $version is bumped)
- Extra handling of accepting the license
- Limit `ensure => version` to RedHat, the 'dpkg' provider is not versionable, so only specify version on osfamily RedHat.
  • Loading branch information
arjenz committed Apr 23, 2019
1 parent 28d1333 commit 6960cd1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,14 @@
$forwarder_pkg_src = "${src_root}/products/universalforwarder/releases/${version}/${forwarder_src_subdir}/${forwarder_src_pkg}"
$create_password = true

$forwarder_pkg_ensure = 'installed'
case $::osfamily {
'RedHat': {
$forwarder_pkg_ensure = $version
}
default: {
$forwarder_pkg_ensure = 'installed'
}
}

# A meta resource so providers know where splunk is installed:
splunk_config { 'splunk':
Expand Down

0 comments on commit 6960cd1

Please sign in to comment.