Issue #5466
closedNo defaults provided for ansible_api_hostname and ansible_content_hostname
Description
Problem¶
A user installs pulp_ansible with the Ansible installer, when using the Galaxy APIs they will emit a 500 traceback due to defaults not being set for ansible_api_hostname and ansible_content_hostname.
Solution¶
Add these settings to pulp_ansible.app.settings here
To work with the default of the installer these settings should be set as follows:
ANSIBLE_API_HOSTNAME = "http://" + socket.getfqdn() + ""
ANSIBLE_CONTENT_HOSTNAME = "http://" + socket.getfqdn() + "/pulp/content".
Testing¶
This needs to be tested against the installer to make sure it works out-of-the box.
Docs¶
The docs here need to be updated to indicate their new defualts.
Also the quickstart guide can have these settings removed here
Added by bmbouter about 5 years ago
Updated by bmbouter about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bmbouter
- Sprint set to Sprint 59
Adding to sprint as AnsibleFest release blocker.
Updated by bmbouter about 5 years ago
- Status changed from ASSIGNED to POST
PR available at: https://github.com/pulp/pulp_ansible/pull/207
Updated by bmbouter about 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp_ansible|3cf9696a53be38044f2d311bc1891ba574b87f84.
Updated by bmbouter about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Add defaults for settings
The
ANSIBLE_API_HOSTNAME
andANSIBLE_CONTENT_HOSTNAME
settings have defaults that use port 80, http, and the FQDN of the server.This is tested against the installer so that it should work with the Nginx config out-of-the-box.
https://pulp.plan.io/issues/5466 closes #5466