Git Product home page Git Product logo

Comments (8)

mberkowski avatar mberkowski commented on July 21, 2024 5

@geerlingguy Would you be open to a PR on this? I'd envision an approach like stating solr_install_path to test if it's a symlink to the same or different version than solr_version, or I suppose just call bin/solr version on the installed solr, which should work for pre5 and 5+. Then run the install script with the -f upgrade flag if they're different instead of relying on creates with the solr executable to detect if it's already there.

from ansible-role-solr.

janhoy avatar janhoy commented on July 21, 2024 1

I managed to upgrade by adding these as pre_tasks, controlled by the solr_force_reinstall variable:

- name: Remove existing install
  file:
    path: /opt/solr
    state: absent
  when: solr_force_reinstall
- name: Remove existing install
  file:
    path: /etc/init.d/solr
    state: absent
  when: solr_force_reinstall
- name: Remove existing install
  file:
    path: /etc/default/solr.in.sh
    state: absent
  when: solr_force_reinstall

from ansible-role-solr.

jbilbro avatar jbilbro commented on July 21, 2024

Yes we'd like this. Not sure how to upgrade with this role as is. Just delete /opt/solr?

from ansible-role-solr.

geerlingguy avatar geerlingguy commented on July 21, 2024

@jbilbro - Yeah, basically. Be aware that if you upgrade major versions, that can cause strange things to happen to existing indexes in SOLR_HOME.

I would like to support more easily switching versions, though. So far I typically support slightly older installs, so I haven't had to manage many servers that are running the bleeding edge (and thus, this hasn't been a priority for me) :(

from ansible-role-solr.

cdmo avatar cdmo commented on July 21, 2024

@mberkowski I'd be open to you forking the repo to add this regardless ;)

from ansible-role-solr.

cdmo avatar cdmo commented on July 21, 2024

just thought I'd add a little extra note. I just successfully upgraded from 7.3 to 7.4 by commenting out the task Remove the downloaded Solr archive. and the condition when: solr_install_path_status.stat.isdir is not defined on the task Download Solr.. I ran the play and then ssh'd into the machine I deployed to. Then ran /root/solr-7.4.0/bin/install_solr_service.sh solr-7.4.0.tgz -n -f from the root user. The -n was probably not necessary. That prevents solr from starting up after install. Now I didn't have any documents in my core when I did the upgrade, so that's a caveat. Thanks.

from ansible-role-solr.

stale avatar stale commented on July 21, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

from ansible-role-solr.

stale avatar stale commented on July 21, 2024

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

from ansible-role-solr.

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.