Story #2833
closed
As a user I want to be able to tell pulp where server.yaml file is and not have it be hardcoded to /etc/pulp/
Status:
CLOSED - CURRENTRELEASE
- Sprint Candidate changed from No to Yes
If the environment variable is not set, it will still default to /etc/pulp/server.yaml right? I think most production installations will want it set there.
Does the devel playbook already install the server.yaml file? If so where?
@asmacdo says the devel environment installs it already to /etc/pulp/server.yaml with this
I was thinking that an environmental variable should be required, rather than us checking to see if the envvar exists and defaulting to a /etc/pulp/server.yaml that might not exist.
The majority of installations will have it installed at /etc/pulp/server.yaml. All rpm based installs for example will have it set there. We should really default to /etc/pulp/server.yaml.
To implement I was thinking we don't even have to check the filesystem at all. We could:
if env_var_for_conf_is_set:
path_to_conf = the_env_set_path
else:
path_to_conf = '/etc/pulp/server.yaml'
We can handle the default as a separate story also and for now require the environment variable. If we do add a default I want it to be something that is very cross-platform.
- Groomed changed from No to Yes
I think is ready to be groomed.
Containerized deployments will mostly use the environment variable, so that's a solid production use case.
I'm still happy with defaulting to /etc/pulp/server.yaml though.
We decided to not set a default for now and to rely on the environment variable in 100% of cases. We can set a default as followup work if we even want to.
- Sprint/Milestone set to 41
- Status changed from NEW to ASSIGNED
- Assignee set to bizhang
- Status changed from ASSIGNED to POST
- Sprint/Milestone changed from 41 to 42
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Sprint/Milestone deleted (
42)
- Sprint/Milestone set to 3.0.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Allow user to specifiy location of server.yaml with envvar
closes #2833 https://pulp.plan.io/issues/2833
revise pulp_settings to default to /etc/pulp/server.yaml