Project

Profile

Help

Issue #5466

closed

No defaults provided for ansible_api_hostname and ansible_content_hostname

Added by bmbouter over 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 59
Quarter:

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

Actions #1

Updated by daviddavis over 4 years ago

  • Groomed changed from No to Yes

Added by bmbouter over 4 years ago

Revision 3cf9696a | View on GitHub

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

Actions #2

Updated by bmbouter over 4 years ago

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

Adding to sprint as AnsibleFest release blocker.

Actions #3

Updated by bmbouter over 4 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by bmbouter over 4 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by bmbouter over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF