Project

Profile

Help

Issue #3981

closed

Switch Pulp3 settings to Dynaconf

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

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
(Total: 0:00 h)
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 43
Quarter:

Description

Problem

The .yaml format for the settings file is creating several challenges:

Proposal:

Have Pulp use the Dynaconf Django: plugin.https://dynaconf.readthedocs.io/en/latest/guides/django.html#settings-files Users would still specify DJANGO_SETTINGS_MODULE=pulpcore.app.settings but dynaconf would be overlaying settings from a dynaconf config file or from environment variables.

This would give us environment variable support and allow some installs to run without any config file at all.

Also the docs need updating so users know they can use dynaconf to configure Pulp with and to refer to their docs.


Sub-issues 4 (0 open4 closed)

Issue #3618: database configuration docs are confusingCLOSED - CURRENTRELEASEdkliban@redhat.comActions
Issue #3879: Cannot opt out of settings defaults due to merging of settingsCLOSED - CURRENTRELEASEdkliban@redhat.comActions
Story #3943: As a user, I can configure Pulp using environment variablesCLOSED - CURRENTRELEASEdkliban@redhat.com

Actions
Issue #3980: Redis only works on localhostCLOSED - CURRENTRELEASEdkliban@redhat.comActions
Actions #1

Updated by bmbouter over 5 years ago

  • Subject changed from Switch Pulp3 settings to Python to Switch Pulp3 settings to Dynaconf
  • Description updated (diff)

Thanks to @brunorocha for suggesting we use this!

Actions #2

Updated by bmbouter over 5 years ago

  • Description updated (diff)
Actions #3

Updated by bmbouter over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #4

Updated by bmbouter over 5 years ago

  • Sprint set to Sprint 42

Adding to sprint as part of rpm sync work.

Actions #5

Updated by bmbouter over 5 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (bmbouter)
  • Sprint deleted (Sprint 42)

accidentally moved the wrong issue.

Actions #6

Updated by CodeHeeler over 5 years ago

  • Triaged changed from No to Yes
Actions #7

Updated by daviddavis over 5 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
Actions #8

Updated by vdusek over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to vdusek
Actions #9

Updated by amacdona@redhat.com over 5 years ago

  • Sprint set to Sprint 43
Actions #10

Updated by vdusek over 5 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (vdusek)
Actions #11

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #12

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from ASSIGNED to POST

Added by Bruno Rocha over 5 years ago

Revision e1fcdda1 | View on GitHub

Problem: Pulp can't be configured using environment variables

Solution: use dynaconf to manage all of Pulp configuration settings

This patch also adds pulpcore.rqconfig module that is dynamically generated from the Django settings generated by dynaconf. The rq workers use this module for their configuration.

The default location of the config file is now at /etc/pulp/settings.py. Pulp can operate without by relying on environment variables.

closes: #3981 https://pulp.plan.io/issues/3981

closes: #3879 https://pulp.plan.io/issues/3879

closes: #3980 https://pulp.plan.io/issues/3980

closes #3618 https://pulp.plan.io/issues/3618

closes: #3943 https://pulp.plan.io/issues/3943

Added by Bruno Rocha over 5 years ago

Revision e1fcdda1 | View on GitHub

Problem: Pulp can't be configured using environment variables

Solution: use dynaconf to manage all of Pulp configuration settings

This patch also adds pulpcore.rqconfig module that is dynamically generated from the Django settings generated by dynaconf. The rq workers use this module for their configuration.

The default location of the config file is now at /etc/pulp/settings.py. Pulp can operate without by relying on environment variables.

closes: #3981 https://pulp.plan.io/issues/3981

closes: #3879 https://pulp.plan.io/issues/3879

closes: #3980 https://pulp.plan.io/issues/3980

closes #3618 https://pulp.plan.io/issues/3618

closes: #3943 https://pulp.plan.io/issues/3943

Actions #13

Updated by Anonymous over 5 years ago

  • Status changed from POST to MODIFIED
Actions #14

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #15

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #16

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF