Jose is correct. There currently is not a way to really expose "install these packages" as a relationship exchange. Things like this are intended to be scoped by the -joined relationship, and are typically scoped by the context of the relationship. For example if you're joining a cache-server relationship, you may install a script-compression module for apache/nginx. (as an oversimplified example)
I think there's a lot of confusion around relationships and interfaces in the current juju docs and experience - and will be working towards publishing a writeup on it as well as refactoring the docs this cycle to get that work included with a basic state chart, and data-exchange diagram to illustrate some sample scenarios. Thanks for the question Nicolas! On Tue, Jan 13, 2015 at 11:22 AM, Nicolás Pace <[email protected]> wrote: > Hi guys, > > I'm working in a charm to test the apache2 charm: > https://code.launchpad.net/~nicopace/+junk/simplewebservercharm > For my vhost-config-relation hook, i need to tell apache to install some > modules. > I now how to do it from the commandline: juju set apache2 > enable_modules="proxy headers" > How can i do this from my hook using amulet? > > Thanks, > > > -- > Ing. Nicolás Pace > http://www.linkedin.com/in/nickar/ > http://www.unixono.com.ar/ > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > -- All the best, Charles Butler <[email protected]> - Juju Charmer Come see the future of datacenter orchestration: http://jujucharms.com
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
