Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate solr tasks so it can be deployed to its own server #126

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

Natkeeran
Copy link
Contributor

search_api_solr 8.3 is not quite working, thus this PR is stuck: #123. Want to get the ansible changes to support indepndent solr server deployement in, thus this PR. Will circle back to the search_api_solr 8.3 issue later on.

GitHub Issue: (link)
Islandora/documentation#1197

What does this Pull Request do?

  • Supports installing solr on its own server.

How should this be tested?

  • Get the PR
  • vagrant up
  • Create content
  • Verify that it gets indexed and returned

In addition, testing the following is helpful.

  • Get the PR
  • Modify or create the following playbook:
---

- include: bootstrap.yml
  tags:
    - bootstrap
- include: solr.yml
  • deploy and check that solr has been correctly installed

Interested parties

@Islandora-CLAW/committers

@dannylamb
Copy link
Member

vagrant up

@dannylamb
Copy link
Member

@Natkeeran

I'm getting this:

TASK [webserver-app : Set default solr server host from hostvars] **************
Thursday 08 August 2019  20:19:31 -0300 (0:00:02.597)       0:41:44.839 ******* 
fatal: [default]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_ssh_host'\n\nThe error appears to be in '/home/daniel/Code/Environments/claw-playbook/roles/internal/webserver-app/tasks/solr.yml': line 7, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set default solr server host from hostvars\n  ^ here\n"}

I checked my vagrantfile and ansible_ssh_host is not defined. Is that something we can trigger to get ansible to autocreate it or do we need to add it manually?

@Natkeeran
Copy link
Contributor Author

Natkeeran commented Aug 13, 2019

@dannylamb

I assume you are merging with latest and testing.

I've updated the pr, pls try again.

@Natkeeran
Copy link
Contributor Author

@dannylamb
Pinging you to see if you can take a another look at this. It should be reasonably straightforward.

@dannylamb
Copy link
Member

vagrant up

@dannylamb
Copy link
Member

I can verify this works on an all-in-one install. Searching behaves as expected. I'll spin up just a solr box for the final test. But in general, this is looking good @Natkeeran!

@dannylamb
Copy link
Member

I've commented out all plays except solr and vagrant uping 🚀

@dannylamb
Copy link
Member

Yep! I've got a stand-alone solr box without issue. :shipit:

@dannylamb dannylamb merged commit e29de05 into Islandora-Devops:dev Aug 27, 2019
@dannylamb
Copy link
Member

@Natkeeran Thx for the work... and your patience ^_^

whikloj pushed a commit to whikloj/claw-playbook that referenced this pull request Dec 18, 2019
…a-Devops#126)

* separate solr tasks so it can be deployed to its own server

* update ansible_ssh_host -> ansible_host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants