<div dir="ltr"><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 28, 2019 at 12:24 PM Clark Boylan <<a href="mailto:cboylan@sapwetik.org">cboylan@sapwetik.org</a>> wrote:<br></div><div>[...] <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm not sure if this is useful but what the Infra team did was to transplant all of its hiera data into /etc/ansible/hosts/host_vars and /etc/ansible/hosts/group_vars. Then we updated our puppetry to pull hiera data out of there. This means that puppet and ansible read the same data sources which has made transitioning things easy for us.<br>
</blockquote></div><br clear="all"></div><div>Yes this is useful to know, thanks for sharing.</div><div>In our case, we are not so worried about the source of data (it can be anywhere really); but our challenge is how we manage the data in our Heat templates and how the way it is exposed to our end-users will remain backward compatible.</div><div><br></div><div>Example:</div><div>Right now, if you want to override parameter DEFAULT/foo in Glance API config file you would do:</div><div><br></div><div>  ControllerExtraConfig:</div><div>    glance::config::glance_api_config:</div><div>      DEFAULT/foo:</div><div>        value: bar</div><div><br></div><div>With the new interface proposal it would be:</div><div><br></div><div>  ControllerExtraConfig:</div><div>    glance_api_config:</div><div>      DEFAULT:</div><div>        foo: bar</div><div><br></div><div>And the second challenge here is to maintain the hierarchies that we have between layers of configuration (per service, per role, per nodes, etc), knowing that Heat doesn't have a hash deep_merge function (yet) AFIK (happy to be corrected here).</div><div>I think we can try to keep hiera now (which provides a nice way to do parameters hierarchy) and keep the focus on stop using the Puppet OpenStack modules logic, just build a new interface which directly lays down the configuration (with Puppet now but something else later).<br></div><div><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Emilien Macchi<br></div></div></div></div></div>