From 2de8b2de391175c88f7cc0faa67d781c2d0bdcff Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 26 Aug 2022 16:12:55 +0100 Subject: [PATCH] pulp: use pulp_url as advertised content origin This fixes an issue where a container image pull would fail if the seed's hostname is not resolvable from the host pulling the image. Typically it will not be. This hasn't always been an issue, and it's unclear what has changed. Perhaps something in the Pulp container registry code. --- etc/kayobe/containers/pulp/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/kayobe/containers/pulp/settings.py b/etc/kayobe/containers/pulp/settings.py index c30454845..7f5636dc1 100644 --- a/etc/kayobe/containers/pulp/settings.py +++ b/etc/kayobe/containers/pulp/settings.py @@ -1,4 +1,4 @@ -CONTENT_ORIGIN='http://{{ ansible_facts.fqdn }}' -ANSIBLE_API_HOSTNAME='http://{{ ansible_facts.fqdn }}' -ANSIBLE_CONTENT_HOSTNAME='http://{{ ansible_facts.fqdn }}/pulp/content' +CONTENT_ORIGIN='{{ pulp_url }}' +ANSIBLE_API_HOSTNAME='{{ pulp_url }}' +ANSIBLE_CONTENT_HOSTNAME='{{ pulp_url }}/pulp/content' TOKEN_AUTH_DISABLED=True