Code Monkey home page Code Monkey logo

Comments (9)

sommestad avatar sommestad commented on June 11, 2024 1

Worked perfectly fine! Thanks!

from chef-splunk.

sommestad avatar sommestad commented on June 11, 2024

Anyone? Would really like to move to version 6.5, but this is hindering that...

from chef-splunk.

rarsan avatar rarsan commented on June 11, 2024

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.

cheeseplus avatar cheeseplus commented on June 11, 2024

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.

sommestad avatar sommestad commented on June 11, 2024

@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.

sommestad avatar sommestad commented on June 11, 2024

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.

sommestad avatar sommestad commented on June 11, 2024

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.

rarsan avatar rarsan commented on June 11, 2024

@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.

rarsan avatar rarsan commented on June 11, 2024

#91 merged. closing.

from chef-splunk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.