What would you like to see in the virtual Charm School hangouts?
Brandon Holtsclaw [ http://www.brandonholtsclaw.com/ ]
me at brandonholtsclaw.com
Sat May 25 07:25:33 UTC 2013
On May 25, 2013, at 2:16 AM, Mark Shuttleworth <mark at ubuntu.com> wrote:
> On 05/24/2013 07:37 PM, Peter M. Petrakis wrote:
>> cat > install << EOF
>> apt-get update && apt-get install -y ruby-1.9.1-full
>> ruby hooks/install.rb
>> All hooks are executed from the charm's root.
> I think Franck was looking for something a bit cleaner than that. Seems
> to me that a package dep declaration would be a good option, though we
> may need the combination of a declaration and some pre-install hooks
> that handle issues associated with that preparatory phase, such as
> dealing with known cases where the packaging system needs specific
> guidance beyond "please install these packages".
A few months ago when I was working on the nginx & nginx-proxy charms I ended up with something very similar to that ( only using PHP instead of Ruby … ) and Yes a pre-req list of deps where I could have declaratively listed a need for the php5-cli in this case , before the install hook ran ( that really became a "boostrap" hook ).
E: me at brandonholtsclaw.com
More information about the Juju