Splunk universal forwarder package upgrade via puppet failing #82
Gajendrap22
started this conversation in
Puppet Enterprise
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
we have 8.1.4 version of splunk universal splunk forwarder in my solaris 11 machine and I'm trying to upgrade it to 9.2.1 via puppet code . the following code is failing and any idea why?
'Solaris': {
$pkg_name = 'splunkforwarder'
$pkg_location = '/nfs/splunk'
$splunk_filedir_owner = 'splunk'
$splunk_filedir_group = 'splunk'
$splunk_service_name = 'splunkforwarder'
case $facts['operatingsystemmajrelease'] {
$install_options = [ 'install -g' , "$ {pkg_location}${pkg_file}" , "${pkg_name}" ]
'11' : {
$pkg_provider = 'pkg'
$pkg_file = 'splunkforwarder-9.2.1-78803f08aabb-solaris-sparc.p5p'
}
}
}
I've also tried it locally with the following code
package {'splunkforwarder' :
ensure => latest,
provider => 'pkg',
source => '/nfs/splunk/splunkforwarder-9.2.1-78803f08aabb-solaris-sparc.p5p',
install_options => [ 'install -g' , '/nfs/splunk/splunkforwarder-9.2.1-78803f08aabb-solaris-sparc.p5p' , 'splunkforwarder' ],
}
used following install options too
install_options => [ '-g' , '/nfs/splunk/splunkforwarder-9.2.1-78803f08aabb-solaris-sparc.p5p' , 'splunkforwarder' ],
install_options => [ 'update' , '/nfs/splunk/splunkforwarder-9.2.1-78803f08aabb-solaris-sparc.p5p' , 'splunkforwarder' ],
pkg list|grep -i splunk
application/splunkforwarder (splunk) 8.1.6 i--
/opt/puppetlabs/bin/puppet apply /var/tmp/splunk.pp
Notice: Compiled catalog for in environment production in 0.09 seconds
Notice: Applied catalog in 32.82 seconds
pkg list|grep -i splunk
application/splunkforwarder (splunk) 8.1.6 i--
Beta Was this translation helpful? Give feedback.
All reactions