Comments (9)
Worked perfectly fine! Thanks!
from chef-splunk.
Anyone? Would really like to move to version 6.5, but this is hindering that...
from chef-splunk.
This is determined by the the underlying resource dpkg_package used by splunk_installer.
I think the default behavior of dpkg --install
is to upgrade a package if it's already installed, but you may need to specify an explicit version
property or options
to be passed for that commend. Look for that resource declaration at the end of splunk_installer
definition.
from chef-splunk.
Are you actually running the with node['splunk']['upgrade_enabled']
as mentioned in the readme? If so it should include the upgrade recipe.
from chef-splunk.
@cheeseplus That's a good point. Is it supposed to be set?
I read the docs as if it was only relevant pre 6.0.1:
This recipe can be used to upgrade a splunk installation, for example from an existing 4.2.1 to 4.3.7. The default recipe can be used for 6.0.1 after upgrading earlier versions is completed.
Also, I didn't find any traces of us ever setting that property before, but maybe we've done upgrades some other way (e.g. always on clean machines).
from chef-splunk.
Could it be an issue that the server URL is pointing to 6.3.3 (https://github.com/chef-cookbooks/chef-splunk/blob/master/attributes/default.rb#L88), or is that just something unrelated?
EDIT This doesn't seem to be a problem, afaiu.
from chef-splunk.
So, I tried setting node.override['splunk']['upgrade_enabled'] = true
and specifying the paths to the correct .deb version, but it still does nothing... 😒
Recipe: chef-splunk::install_server
* remote_file[/var/chef/cache/splunk-6.5.1-f74036626f0c-linux-2.6-amd64.deb] action create_if_missing
- create new file /var/chef/cache/splunk-6.5.1-f74036626f0c-linux-2.6-amd64.deb
- update content in file /var/chef/cache/splunk-6.5.1-f74036626f0c-linux-2.6-amd64.deb from none to 34bf4d
(file sizes exceed 10000000 bytes, diff output suppressed)
* dpkg_package[splunk] action install (up to date)
from chef-splunk.
@sommestad I was able to repro the issue. It appears Chef dpkg resource implementation skips installation simply on package found. I have a workaround in flight to explicitly set version.
Also, to successfully upgrade, you need to do all of the following:
- set upgrade url
node['splunk']['upgrade']['server_url']
- set flag
node['splunk']['upgrade_enabled']
- add upgrade recipe to run list:
recipe[chef-splunk::upgrade]
from chef-splunk.
#91 merged. closing.
from chef-splunk.
Related Issues (20)
- `splunk_auth` no longer required by `splunk_app` resource
- Error executing action `run` on resource 'execute[update-splunk-mgmt-port]' HOT 7
- Splunk forwarder installation failure HOT 6
- chef-splunk installation failure due default_description as a property field
- SHC captain logic fails when existing captain exists
- shcluster_member? is missing an argument on line 213
- splunk version conflict after upgrades can cause Splunk to be downgraded
- splunk.service: Refusing to accept PID outside of service control group HOT 8
- systemd unit file in cookbook has diverged from splunk documentation HOT 2
- GitHub actions don't test all supported OSes
- shcluster_member? is returning false when it should be true
- Implementing Windows Support for Client Only HOT 1
- splunk_login_successful? helper method fails to send auth info to splunkd
- Add SUSE support
- undefined local variable or method `node' for Chef::Provider::Service::Systemd:Class HOT 3
- Splunk restarting on every run because of mgmt port
- splunk_monitor resource fails for valid index names
- chef-vault and default recipe being invoked when only installing the forwarder
- Systemd doesn't recognize Splunkd.service on upgrade
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-splunk.