[Pulp-dev] Documentation Systemd clarification?

Mike DePaulo mikedep333 at redhat.com
Fri Mar 29 17:10:37 UTC 2019


On Fri, Mar 29, 2019 at 4:44 AM Juan Cabrera <juan.cabrera at unamur.be> wrote:

> At the section about Systemd :
>
>
> https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#systemd
>
> It is said that the default config file is /etc/pulp/server.yaml.
>
> In the installed VM there is not a Environment=PULP_SETTINGS=/path/to/pulp/server.yaml
> line in the pulp-resource-manager.service file and the configuration file
> is named `/etc/pulp/settings.py`. Some thing must be updated in the
> documentation?
>
> The file contents in the VM are:
>
> [root at dev-pulp-server system]# cat
> /etc/systemd/system/pulp-resource-manager.service
> [Unit]
> Description=Pulp Resource Manager
> After=network-online.target
> Wants=network-online.target
>
> # This service will break if left running while PostgreSQL restarts.
> BindsTo=postgresql.service
> After=postgresql.service
>
> [Service]
> Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
> User=pulp
> WorkingDirectory=/var/run/pulp-resource-manager/
> RuntimeDirectory=pulp-resource-manager
> ExecStart=/usr/local/lib/pulp/bin/rq worker \
>           -w pulpcore.tasking.worker.PulpWorker -n resource-manager@%%h \
>           --pid=/var/run/pulp-resource-manager/resource-manager.pid
>
> [Install]
> WantedBy=multi-user.target
>
Hi Juan,

Sorry you ran into this issue with our docs.

I think that specific documentation page[1] is was not sufficiently updated
to reflect the migration to dynaconf.
https://pulpproject.org/2018/09/25/pulp-3-adopts-dynaconf/
1. Dynaconf supports multiple formats; .py & .yml included.
2. The default path /etc/pulp/settings.py is in the codebase rather than
the .service file. The .service file can still override it.

Please submit an issue, and a pull request if you can.
https://github.com/pulp/pulpcore/

[1] In contrast,
https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html was
updated sufficiently.

-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20190329/86ef8a2c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ggnbkfnaalgjmcaa.png
Type: image/png
Size: 9356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20190329/86ef8a2c/attachment.png>


More information about the Pulp-dev mailing list