<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 9:36 AM, Dean Troyer <span dir="ltr"><<a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>DevStack has long had a config setting in localrc called EXTRA_OPTS that allowed arbitrary settings to be added to /etc/nova/nova.conf [DEFAULT] section.  Additional files and sections have recently been implemented with a similar scheme.  I don't think this scales well as at a minimum every config file and section needs to be individually handled.<br>



</div><div><br></div><div>I'd like to get some feedback on the following two proposals, or hear other ideas on how to generalize solving the problem of setting arbitrary configuration values.</div><div><br></div><div>



<br></div><div>a) Create conf.d/*.conf files as needed and process each file present into a corresponding config file.  These files would not be supplied by DevStack but created and maintained locally.</div><div><br></div>



<div>Example: conf.d/etc/nova/nova.conf:</div><div><div>[DEFAULT]</div><div><div>use_syslog = True<br></div><div><br></div><div>[osapi_v3]</div></div><div>enabled = False</div></div><div><br></div><div><br></div><div>b) Create a single service.local.conf file for each project (Nova, Cinder, etc) that contains a list of settings to be applied to the config files for that service.<br clear="all">



<div><br></div><div>Example: nova.local.conf:</div><div># conf file names are parsed out of the section name below between '[' and the first ':'</div><div>[/etc/nova/nova.conf:DEFAULT]</div><div><div>use_syslog = True<br>



</div><div><br></div><div>[/etc/nova/nova.conf:osapi_v3]</div></div><div>enabled = False</div><div><br></div><div><br></div><div>Both cases need to be able to specify the destination config file and section in addition to the attribute name and value.</div>



<div><br></div><div>Thoughts?</div><div>dt</div><div><br></div><div><div>[Prompted by review <a href="https://review.openstack.org/44266" target="_blank">https://review.openstack.org/44266</a>]</div></div><span><font color="#888888"><div>


<br></div>-- <br><br>Dean Troyer<br>
<a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a><br>
</font></span></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><div class="gmail_default" style="font-family:'courier new',monospace">+1 for not dumping in lib/xxx</div><div class="gmail_default" style="font-family:'courier new',monospace"><br>

</div><div class="gmail_default" style="font-family:'courier new',monospace">Option 'a' seems like a bit easier to manage in terms of number of files etc but I wouldn't have a strong preference between the two options presented.</div>

<div class="gmail_default" style="font-family:'courier new',monospace"><br>
</div><div class="gmail_default" style="font-family:'courier new',monospace"> </div><br></div></div>