<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I made a docs issue [0] and a PR to adjust the systemd settings this [1]. Since dynaconf configures it now, I believe removing this from the systemd file is the best resolution.<br></div><div><br></div><div>[0]: <a href="https://pulp.plan.io/issues/4622">https://pulp.plan.io/issues/4622</a><br></div><div>[1]: <a href="https://github.com/pulp/pulpcore/pull/63">https://github.com/pulp/pulpcore/pull/63</a></div><div><br></div><div>Please let us know if there is anything else we can improve on.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 1:11 PM Mike DePaulo <<a href="mailto:mikedep333@redhat.com">mikedep333@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>On Fri, Mar 29, 2019 at 4:44 AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>At the section about Systemd :<br></p>
    <p><a class="gmail-m_2445042903040375848gmail-m_-6885100073386585232moz-txt-link-freetext" href="https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#systemd" target="_blank">https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#systemd</a></p>
    <p>It is said that the default config file is <tt>/etc/pulp/server.yaml</tt>.</p>
    <p>In the installed VM there is not a <code class="gmail-m_2445042903040375848gmail-m_-6885100073386585232docutils gmail-m_2445042903040375848gmail-m_-6885100073386585232literal gmail-m_2445042903040375848gmail-notranslate"><span class="gmail-m_2445042903040375848gmail-m_-6885100073386585232pre">Environment=PULP_SETTINGS=/path/to/pulp/server.yaml
        </span></code>line in the <tt>pulp-resource-manager.service </tt>file
      and the configuration file is named `<tt>/etc/pulp/settings.py</tt>`.
      Some thing must be updated in the documentation?<br>
    </p>
    <p>The file contents in the VM are:<br>
    </p>
    <p><tt>[root@dev-pulp-server system]# cat
        /etc/systemd/system/pulp-resource-manager.service</tt><tt><br>
      </tt><tt>[Unit]</tt><tt><br>
      </tt><tt>Description=Pulp Resource Manager</tt><tt><br>
      </tt><tt>After=network-online.target</tt><tt><br>
      </tt><tt>Wants=network-online.target</tt><tt><br>
      </tt><tt><br>
      </tt><tt># This service will break if left running while
        PostgreSQL restarts.</tt><tt><br>
      </tt><tt>BindsTo=postgresql.service</tt><tt><br>
      </tt><tt>After=postgresql.service</tt><tt><br>
      </tt><tt><br>
      </tt><tt>[Service]</tt><tt><br>
      </tt><tt>Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"</tt><tt><br>
      </tt><tt>User=pulp</tt><tt><br>
      </tt><tt>WorkingDirectory=/var/run/pulp-resource-manager/</tt><tt><br>
      </tt><tt>RuntimeDirectory=pulp-resource-manager</tt><tt><br>
      </tt><tt>ExecStart=/usr/local/lib/pulp/bin/rq worker \</tt><tt><br>
      </tt><tt>          -w pulpcore.tasking.worker.PulpWorker -n
        resource-manager@%%h \</tt><tt><br>
      </tt><tt>         
        --pid=/var/run/pulp-resource-manager/resource-manager.pid</tt><tt><br>
      </tt><tt><br>
      </tt><tt>[Install]</tt><tt><br>
      </tt><tt>WantedBy=multi-user.target</tt></p></div></blockquote><div>Hi Juan,</div><div><br></div><div>Sorry you ran into this issue with our docs.</div><div><br></div>I think that specific documentation page[1] is was not sufficiently updated to reflect the migration to dynaconf.<br><a href="https://pulpproject.org/2018/09/25/pulp-3-adopts-dynaconf/" target="_blank">https://pulpproject.org/2018/09/25/pulp-3-adopts-dynaconf/</a><br>1. Dynaconf supports multiple formats; .py & .yml included.<br>2. The default path /etc/pulp/settings.py is in the codebase rather than the .service file. The .service file can still override it.<span class="gmail-m_2445042903040375848sewf76u41d7qi2s"></span><div><br></div><div>Please submit an issue, and a pull request if you can.</div><div><a href="https://github.com/pulp/pulpcore/" target="_blank">https://github.com/pulp/pulpcore/</a><br></div><div><br></div><div>[1] In contrast, <a href="https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html" target="_blank">https://docs.pulpproject.org/en/3.0/nightly/installation/configuration.html</a> was updated sufficiently.</div><div><br></div><div><div>-Mike </div></div></div></div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote></div>