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

Remote installation is failing with task webserver-app : Set default solr server host from hostvars #1547

Closed
pejuko opened this issue Jun 16, 2020 · 6 comments

Comments

@pejuko
Copy link

pejuko commented Jun 16, 2020

Hi,
I proceed as written in https://islandora.github.io/documentation/installation/ section Installing a remote environment. The installation process is interrupted with error:

TASK [webserver-app : Set default solr server host from hostvars] ****************************************
Tuesday 16 June 2020  10:56:39 +0200 (0:00:03.749)       0:19:38.676 ********** 
fatal: [default]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ansible_host'\n\nThe error appears to have been in '/home/pejuko/islandora-playbook/roles/internal/webserver-app/tasks/solr.yml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Solr server configuration should go into the solr playbook: https://github.com/Islandora-Devops/claw-playbook/blob/dev/solr.yml\n- name: Set default solr server host from hostvars\n  ^ here\n"}

So I believe there is missing information about how to configure solr (probably in group_vars/solr.yml)
Can you, please, provide some information how to set custom domain for solr?
Thanks.

@whikloj
Copy link
Member

whikloj commented Jun 16, 2020 via email

@pejuko
Copy link
Author

pejuko commented Jun 16, 2020

Hi Jared,
it works! I was missing the ansible_host variable.
In the documentation is only

default ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

but should be

default ansible_host=example.org ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

btw. I'm installing Islandora only in virtual box just as a practice before installing it on a production server.

@whikloj
Copy link
Member

whikloj commented Jun 16, 2020

Ooooo right you are, I'll verify with others but I think we need to correct that. Good catch.

@ainsofs
Copy link

ainsofs commented Jul 2, 2020

Thanx for this. I had a similar issue with seadragon config using ansible to provision a centos7 server. Perhaps this page could be updated to reflect the ansible_host=example.org variable in the hosts file - https://islandora.github.io/documentation/installation/

# default ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'
default ansible_host=example.org ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

Or update the roles

@whikloj
Copy link
Member

whikloj commented Jul 2, 2020

I knew I had seen this, but then I went and made a duplicate ticket and a PR to fix this. Under #1557

@dannylamb
Copy link
Contributor

Resolved via bbe1616

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

No branches or pull requests

4 participants