Project

Profile

Help

Task #5031

closed

Consolidate Pulp settings into a single role variable

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

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 55
Quarter:

Description

Problem

The majority of Pulp settings cannot be set by the Ansible installer. The reason is because the current approach is to have a 1-to-1 mapping of role-variables to Pulp settings, and we only have maybe 5 of the settings mirrored in the installer role variables. The first problem is the gap in the user not being able to set these.

This approach creates a significant maintenance burden though as new settings will have to be specially added to the Installer which is even more work.

Also settings that would be set in Pulp's settings file (e.g. unrelated Django settings) also can't be specified with this approach either. This is probably the largest issue.

Solution

I asked in #ansible and here is what they recommended:

1. Have a single role variable named 'pulp_settings' and make this a dictionary that takes arbitrary key/values.
2. Have the jinja template that builds settings.py unroll all top-level keys into the file.

Details

We need to determine how this works with the minimum required variables like SECRET_KEY...

Also available in: Atom PDF