Comments (5)
Oh, interesting. Can you give me a bit more context? It looks like this is happening on the deploy
role. Are you running that role on a pre-existing box to deploy fresh code? Are you running it in the context of building a box? Which OS? What version of Solr are you trying to restart?
from ansible-hydra.
Yes - I'm running it in a deploy role. I'm copying in my playbook here since the vars are in a private repo to keep them secure
# Config file to bulid a Ubuntu 16.04 LTS Xenial Xerus server for
# projects based on https://github.com/curationexperts/epigaea
# run the playbook with the command:
# "ansible-playbook -i hosts sample-ubuntu-16.yml"
#
- hosts: localhost
connection: local
gather_facts: False
vars_files:
- redaacted-vars.yml
roles:
- launch_ec2
- hosts: newboxes
name: prep
user: ubuntu
gather_facts: false
pre_tasks:
- name: install python2 for ansible
raw: sudo apt-get -y install python-simplejson
- hosts: newboxes
name: configuration
user: ubuntu
vars_files:
- redacted-vars.yml
gather_facts: true
roles:
- { role: packages }
- { role: mount_disks }
- { role: set_timezone }
- { role: system_setup }
- { role: capistrano_setup }
- { role: ruby }
- { role: fedora }
- { role: solr }
- { role: frontend }
- { role: sufia_dependencies/install }
- { role: sufia_dependencies/config }
# sufia_dependencies must precede marmotta, which requires postgresql
- { role: webserver/install }
- { role: webserver/config }
- { role: deploy }
from ansible-hydra.
Does this mean we don't want to remove Solr 4 support as per #244 if there's still use cases for it?
from ansible-hydra.
@sanfordd - no, I'm not trying to comment about specific versions, you could just update my example to
when: {{ solr_main_version | default('not_installed') }} == 5
or something similar.
My main point is that I shouldn't have to explicitly define both solr_version
and solr_main_version
since the latter is derivable from the former. As long as the main version is a single digit, it looks like {{ solr_version[0] }}
should probably work. You could do something more complex and find the index of the first period in solr_version
and then grab everything up to the period: {{ solr_version[0:index_of_first_period_in_verison_nubmer] }}
from ansible-hydra.
Fixed in ansible-samvera
from ansible-hydra.
Related Issues (20)
- Set ssh timeout to be resilient for poor network connections HOT 3
- Error in mount_disks role HOT 2
- Rescue-Pool is in unknown state HOT 4
- Launch_ec2 role should support layered security groups
- Expand mount_disks role to mount multiple disks on multiple machines HOT 1
- add htop to standard packages HOT 3
- Expand security_groups functionality to allow multiple rules per group
- Refine SSL installation
- Postgres backups are silently failing
- ec2 backups should work on Ubuntu 16
- ec2 backups should work in any region
- consider using ec2-expire-snapshots instead of snapshot_cleanup script
- shibd config should constrain "false" to lower-case
- psql databases end up owned by wrong user HOT 1
- solr restart failed when rebooting prod solr machine HOT 1
- Separate server_name variable into hostname and domain HOT 1
- Do we need "flush handlers" in the system setup role? HOT 1
- Remove resque steps HOT 1
- Remove setup of shared Capistrano directories 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-hydra.