<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 9:28 AM, Bob Ball <span dir="ltr"><<a href="mailto:bob.ball@citrix.com" target="_blank">bob.ball@citrix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I think it’d make more sense the other way round.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If localrc does not exist, and we’ve created a localrc.generated create localrc with just “source localrc.generated”.  That way anyone using localrc directly
 will get the right information.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">A quick grep suggests that all uses in devstack source the localrc, therefore that should work?<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">It’d be easy to add a comment in the localrc or in the docs for local.conf that say only stack.sh will update localrc.generated so if you want live changes
 in other scripts you have to modify localrc?</span></p></div></div></blockquote></div><div class="gmail_extra"><br></div>The real goal is for the user to stop modifying localrc once they start using local.conf but keep the same semantics.  If I could figure out how to stuff the config bits into localrc and still have it be sourcable I'd...ok, just tried that, it can work but is too fragile.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">How about this:</div><div class="gmail_extra"><br></div><div class="gmail_extra">- if localrc exists, use it. the rest of local.conf works as proposed.  </div><div class="gmail_extra">
- if local.conf has a [[local:localrc]] section and localrc exists print a warning that it (local.conf localrc section) is being ignored</div><div class="gmail_extra">- if local.conf has a [[local:localrc]] section and localrc does not exist, extract it to localrc.generated and use that</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">- interactively-entered passwords will continue to be written to localrc if it exists but will not be written to local.conf; this way we can say local.conf is _never_ modified by DevStack.  The value in creating localrc on first run is long gone, running DevStack with no config is not very useful anymore.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">This does the following:</div><div class="gmail_extra">- localrc semantics do not change so there is no compatibility surprise</div><div class="gmail_extra">- local.conf config function is seamlessly added</div>
<div class="gmail_extra">- to gain the all-config-in-one-file aspect the user needs to 'convert' localrc to a local.conf [[local:localrc]] section; otherwise no change is necessary</div><div class="gmail_extra">- local.generated will include the 'DO NOT EDIT' warning as it will be re-created as-required when stackrc sources it</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Am I missing anything?</div><div class="gmail_extra"><br></div><div class="gmail_extra">dt</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>
<br></div>-- <br><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br>
</div></div>