Project

Profile

Help

Issue #5466

closed

No defaults provided for ansible_api_hostname and ansible_content_hostname

Added by bmbouter about 5 years ago. Updated about 4 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

Also available in: Atom PDF