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

Use service name instead of localhost #1231

Open
Natkeeran opened this issue Jul 29, 2019 · 0 comments
Open

Use service name instead of localhost #1231

Natkeeran opened this issue Jul 29, 2019 · 0 comments
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also

Comments

@Natkeeran
Copy link
Contributor

Claw-playbook and related roles use quite a number localhost as endpoints. When deploying to multiple machines, the user has to carefully configure the many places it appears. To help improve this, we can use service_name or host_name configured in /etc/hosts. Thus, instead of http://localhost:8080/fcrepo/rest, it can be http://fedora:8080/fcrepo/rest.

In addition to helping simplify configuration, it can later on help with making it more scalable/distributed as well. For instance, instead of the using hosts file for mapping, admins can setup DNS.

Make sure not to overwrite existing /etc/hosts, but to append the additional name machine mappings.

Additional Info:
https://unix.stackexchange.com/questions/16890/how-to-make-a-machine-accessible-from-the-lan-using-its-hostname

@Natkeeran Natkeeran changed the title User service name instead of localhost Use service name instead of localhost Jul 29, 2019
@kstapelfeldt kstapelfeldt added Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also and removed Ansible labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also
Projects
Development

No branches or pull requests

2 participants