<div dir="ltr"><div>Hi all,<br><br>Some months ago, I started to work on a Murano integration with<br>Berkshelf [1] to manage Chef cookbooks dependencies when Murano deploys<br>a Chef cookbook (cf spec [2]).<br><br>The main work is in murano-agent and was merged in last November [3].<br><br>However, I still haven't finalize the work with the integration tests<br>(review on hold [4]) because it requires having Berkshelf installed on<br>the image (and the latest murano-agent).<br><br><span tabindex="-1" id="result_box" class="" lang="en"><span class="">I still wonder what</span> <span class="">is the best</span> <span class="">way to install</span> <span class="">Berkshelf</span><span class="">.</span></span><br><br>Currently, Chef and Puppet are installed along with Murano agent in the<br>DIB elements [5]<br>However, the murano-apps examples using Chef and Puppet contain<br>additional DIB elements to install Chef/Puppet [6]; I suppose they<br>aren't needed anymore.<br><br>Of course, we can install Berkshelf in Murano agent DIB elements. But do<br>we really want this additional software coming up in Murano images even<br>if neither Berkshelf nor Chef is used?<br><br>An other solution is to install Berkshelf at runtime using cloud-init,<br>like Henar Muñoz did for Chef and Puppet last month [7]. However, I'm a<br>little bit confused by all these solutions. Is there a recommended<br>solution? And which solution should I use to make my functional tests<br>work [4]?<br><br>One more thing: the recommended way to install Berkshelf is now to use<br>ChefDK (Chef Development Kit), which includes multiple tools [8].<br>An Ubuntu image with murano-agent installed with DIB elements (including<br>Chef & Puppet) is 438 MB. If I add ChefDK, the image is 794 MB...<br>It is possible to install Berkshelf only using Ruby gems [9] but it's<br>not the recommended way.<br><br></div>Any thought?<br><div><div><div><div><br>[1] <a href="http://berkshelf.com/">http://berkshelf.com/</a><br>[2] <a href="http://murano-specs.readthedocs.org/en/latest/specs/mitaka/support-chef-berkshelf.html">http://murano-specs.readthedocs.org/en/latest/specs/mitaka/support-chef-berkshelf.html</a><br>[3] <a href="https://review.openstack.org/#/c/240808/">https://review.openstack.org/#/c/240808/</a><br>[4] <a href="https://review.openstack.org/#/c/248027/">https://review.openstack.org/#/c/248027/</a><br>[5] <a href="https://github.com/openstack/murano-agent/blob/master/contrib/elements/murano-agent/install.d/74-murano-agent#L5">https://github.com/openstack/murano-agent/blob/master/contrib/elements/murano-agent/install.d/74-murano-agent#L5</a><br>[6] <a href="https://github.com/openstack/murano-apps/tree/master/Chef/GitChef/elements">https://github.com/openstack/murano-apps/tree/master/Chef/GitChef/elements</a><br>[7] <a href="https://review.openstack.org/#/c/230381/16">https://review.openstack.org/#/c/230381/16</a><br>[8] <a href="https://downloads.chef.io/chef-dk/">https://downloads.chef.io/chef-dk/</a><br>[9] <a href="https://rubygems.org/gems/berkshelf">https://rubygems.org/gems/berkshelf</a><br><br>-- <br><div><span style="font-size:10pt"><font face="Calibri, Verdana, Helvetica, Arial">Olivier Lemasle<br>Software Engineer<br>
</font></span><font face="Calibri, Verdana, Helvetica, Arial"><font color="#0D4880"><font size="4"><span style="font-size:11pt"><b>Apalia</b></span></font></font><font size="4"><span style="font-size:11pt"><font color="#0A334E">™<b> <br>
</b></font></span></font><span style="font-size:10pt">Mobile: <a value="+33611691211">+33-611-69-12-11</a><br>
<font color="#0000FC"><u><a href="http://www.apalia.net" target="_blank">http://www.apalia.net</a><br>
<a href="mailto:olivier.lemasle@apalia.net" target="_blank"></a><a href="mailto:olivier.lemasle@apalia.net" target="_blank">olivier.lemasle@apalia.net</a></u></font></span></font></div>
</div></div></div></div></div>