Project

Profile

Help

Issue #5466

No defaults provided for ansible_api_hostname and ansible_content_hostname

Added by bmbouter about 1 month ago. Updated about 1 month ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 59

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

Associated revisions

Revision 3cf9696a View on GitHub
Added by bmbouter about 1 month ago

Add defaults for settings

The `ANSIBLE_API_HOSTNAME` and `ANSIBLE_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

History

#1 Updated by daviddavis about 1 month ago

  • Groomed changed from No to Yes

#2 Updated by bmbouter about 1 month ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
  • Sprint set to Sprint 59

Adding to sprint as AnsibleFest release blocker.

#3 Updated by bmbouter about 1 month ago

  • Status changed from ASSIGNED to POST

#4 Updated by bmbouter about 1 month ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF