Follow up here with @ekohl’s PR. While running the installer with:
foreman-installer --foreman-proxy-plugin-pulp-pulpcore-enabled true
$ PULP_SETTINGS=/etc/pulp/settings.py sudo pulpcore-manager migrate --noinput
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pulpcore/app/settings.py", line 253, in <module>
CONTENT_ORIGIN
NameError: name 'CONTENT_ORIGIN' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bin/pulpcore-manager", line 11, in <module>
load_entry_point('pulpcore==3.7.3', 'console_scripts', 'pulpcore-manager')()
File "/usr/lib/python3.6/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/usr/lib/python3.6/site-packages/pulpcore/app/apps.py", line 81, in ready
self.import_viewsets()
File "/usr/lib/python3.6/site-packages/pulpcore/app/apps.py", line 110, in import_viewsets
from pulpcore.app.viewsets import NamedModelViewSet
File "/usr/lib/python3.6/site-packages/pulpcore/app/viewsets/__init__.py", line 1, in <module>
from .base import ( # noqa
File "/usr/lib/python3.6/site-packages/pulpcore/app/viewsets/base.py", line 17, in <module>
from pulpcore.app import tasks
File "/usr/lib/python3.6/site-packages/pulpcore/app/tasks/__init__.py", line 1, in <module>
from pulpcore.app.tasks import base, repository, upload # noqa
File "/usr/lib/python3.6/site-packages/pulpcore/app/tasks/upload.py", line 6, in <module>
from pulpcore.app.serializers import ArtifactSerializer
File "/usr/lib/python3.6/site-packages/pulpcore/app/serializers/__init__.py", line 42, in <module>
from .exporter import ( # noqa
File "/usr/lib/python3.6/site-packages/pulpcore/app/serializers/exporter.py", line 8, in <module>
from pulpcore.app import models, settings
File "/usr/lib/python3.6/site-packages/pulpcore/app/settings.py", line 257, in <module>
"CONTENT_ORIGIN is a required setting but it was not configured. This may be caused "
django.core.exceptions.ImproperlyConfigured: CONTENT_ORIGIN is a required setting but it was not configured. This may be caused by invalid read permissions of the settings file. Note that CONTENT_ORIGIN is set by the installer automatically.
The contents of the /etc/pulp/settings.py:
$ sudo cat /etc/pulp/settings.py
CONTENT_HOST = "centos7-proxy-devel.jjeffers.example.com"
CONTENT_ORIGIN = "https://centos7-proxy-devel.jjeffers.example.com"
[...]