Comments (8)
@geerlingguy Would you be open to a PR on this? I'd envision an approach like stat
ing 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.
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.
Yes we'd like this. Not sure how to upgrade with this role as is. Just delete /opt/solr?
from ansible-role-solr.
@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.
@mberkowski I'd be open to you forking the repo to add this regardless ;)
from ansible-role-solr.
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.
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.
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)
- Auto resolve Apache mirror site HOT 5
- solr-pre5.unit.j2 - JAVA var: solr.home naming HOT 2
- log4j.properties does not exist with solr 6.6.6 HOT 1
- Confirm support for Solr 8 HOT 1
- solrcloud mode get error : Error processing the request. CoreContainer is either not initialized or shutting down. HOT 2
- Update solr versions to latest stable releases
- installation problem HOT 1
- Installation problem during playing the playbook HOT 2
- Upgrade version HOT 7
- configset mislocated? HOT 2
- Use role for managing individual cores HOT 2
- Support for separating core configuration and data HOT 4
- Failure to build Solr AMI with Permission denied HOT 2
- Setting solr_remove_cruft: true disallows creating additional cores HOT 3
- Allow to update to a new solr version HOT 3
- Switch defaults to Solr 9 HOT 5
- Solr-Example directory not available in Solr 9.0.0 on Debian 11 HOT 4
- Adjust recommended JVM Memory settings HOT 1
- Consider non root use HOT 2
- Debian 12 with OpenJDK Java 17 results in 'No ScriptEngine found' error HOT 1
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 ansible-role-solr.