<div><span style="color: rgb(160, 160, 168); ">On Wednesday, June 6, 2012 at 8:31 PM, Gustavo Niemeyer wrote:</span></div>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>Hi Brandon,</div><div><br></div><blockquote type="cite"><div><div>1) a package list constraint or metadata that would be installed on all</div><div>nodes that had that constraint , e.g. ruby1.9 or php-cli , these could be</div><div>added very easily to the array that is passed in now for installing juju and</div><div>bzr etc during cloud init. so they could be used as the runtime for</div><div>hook/install and such.</div></div></blockquote><div><br></div><div>That would remove the important property of charms of being</div><div>self-contained. In other words, one shouldn't have to prepare the</div><div>environment in manual ways to enable the charm to work.</div><div><br></div><blockquote type="cite"><div><div>2) the same type of thing only just a base64 encoded #user-script to be</div><div>executed by cloud-init in its normal fashion provided by the charm as a hook</div><div>of say hooks/init</div></div></blockquote><div><br></div><div>Not sure I understand. Why not just using hooks/{install,start} to do</div><div>the task itself?</div><div><br></div></div></div></span></blockquote><div><font face="Tahoma">Both were different angles at the same goal, to get at runtimes not installed on the default cloud images from the start instead of now using something like this in hooks/install:</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">#!/bin/bash</font></div><div><font face="Tahoma">apt-get -yqq install ruby rubygems && </font><span style="font-family: Tahoma; ">ruby hooks/install.rb</span></div><div>exit 0 </div><div><br></div><div><br></div><div><font face="Tahoma">same could be said for puppet manifests etc that already have support in cloud-init for, it would just be exposing that to the charm in juju way</font></div><div><br></div><div> </div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><span><div><div><div></div><div>gustavo @ <a href="http://niemeyer.net">http://niemeyer.net</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>