<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 6:21 PM, Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div>
On 06/25/2013 06:03 AM, Zhongyue Luo wrote:
<blockquote type="cite">
<div dir="ltr">
<div>Hi team</div>
<div><br>
</div>
<div>I'm currently trying to move the
generate_sample.sh script in nova to oslo.</div>
<div><br>
</div>
<div>Before pushing the patch to gerrit, I wanted to give the
output directory a default value if it was not stated so I was
wondering where projects put their sample config file at and
did this:<br>
</div>
<div><br>
</div>
find . -name "*.conf*" ! -path "*.tox*" ! -path "*.venv*" | grep
etc<br clear="all">
<div><br>
</div>
<div>results:</div>
<div>
<div>./ceilometer/etc/ceilometer/ceilometer.conf.sample</div>
<div>./cinder/etc/cinder/cinder.conf.sample</div>
<div>./nova/etc/nova/nova.conf.sample<br>
</div>
<div>./swift/etc/swift.conf-sample<br>
</div>
<div>./tempest/etc/tempest.conf.sample</div>
<div>./glance/etc/glance-cache.conf<br>
</div>
<div>./quantum/etc/quantum.conf<br>
</div>
</div>
</div>
</blockquote>
<br></div>
At the moment Neutron (it is getting hard to get used to) does not
have sample configuration file(s). The convention that we use is to
try and have the default value of the variable in the configuration
file commented out so that the user can update if they choose.<br>
<br>
In addition to this there are a number of different configuration
files, for example - dhcp-agent.ini, l3-agent.ini etc. It may be a
bit tricky generating sample configuration files for all of these.<br>
<br>
Thanks<span><font color="#888888"><br>
Gary<br>
<br></font></span></div></blockquote><div><br></div><div>This is also how Glance manages their conf files. I agree that it's better when configuration files are as small as possible for each daemon so this requirement makes sense. However mapping the options to the files seems need of manual control for the time being. Therefore the current goal is to list up all the options in one file with the default values commented out. This is for the web doc team to go through minimum hassle for updating option documentation. We should have further discussion on how to automatically map options to its conf file.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span><font color="#888888">
</font></span><blockquote type="cite"><div>
<div dir="ltr">
<div>
<div>./keystone/etc/keystone.conf.sample<br>
</div>
<div><br>
</div>
<div>You can see that ceilometer, cinder, and nova
put their sample config files on ./etc/$PROJECTNAME while
the others put it on ./etc</div>
<div><br>
</div>
<div>So would this inconsistency be a problem?</div>
<div><br>
</div>
<div>IMO, ./etc/$PROJECTNAME makes sense to me if
consistency is an issue.</div>
<div><br>
</div>
<div>Thoughts?</div>
<div><br>
</div>
</div>
-- <br>
<div dir="ltr">
<div><b>Intel SSG/STOD/DCST/CIT</b></div>
<div>880 Zixing Road, Zizhu Science Park, Minhang District,
200241, Shanghai, China<br>
</div>
<div>+862161166500</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><div><pre>_______________________________________________
OpenStack-dev mailing list
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a>
<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>
</pre>
</div></blockquote>
<br>
</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><br><br clear="all"><br>-- <br><div dir="ltr"><div><b>Intel SSG/STOD/DCST/CIT</b></div>
<div>880 Zixing Road, Zizhu Science Park, Minhang District, 200241, Shanghai,
China<br></div>
<div>+862161166500</div></div>
</div></div>