vhost-config apache2 hook

Nicolás Pace nicopace at gmail.com
Wed Jan 28 14:56:12 UTC 2015


On Tue, Jan 27, 2015 at 5:50 PM, David Britton <david.britton at canonical.com>
wrote:

> On Tue, Jan 27, 2015 at 04:58:29PM -0300, Nicolás Pace wrote:
> > Hi,
>
> Hi Nicolás,
>
>
Hi David,
thanks for your answer!


> >
> > Any idea where to go from here?
>
> Have you tried doing 'juju debug-hooks <unit>'?  This helps me greatly
> when trying to figure out why hooks aren't working.  You can manually
> fire the hook off and make sure data is set/received correctly (on the
> sender and receiver end!)
>
>   https://juju.ubuntu.com/docs/authors-hook-debug.html


I've used juju debug-hooks apache2/0 to debug the
vhost-config-relation-changed hook.
When i call relation-get , i get:
private-address: 10.0.3.137
vhosts: '- {port: 80, template:
CiMgRW5zdXJlIHRoYXQgQXBhY2hlIGxpc3RlbnMgb24gcG9ydCA4MApMaXN0ZW4gODAKIyBMaXN0ZW4gZm9yIHZpcnR1YWwgaG9zdCByZXF1ZXN0cyBvbiBhbGwgSVAgYWRkcmVzc2VzCk5hbWVWaXJ0dWFsSG9zdCAqOjgwCgo8VmlydHVhbEhvc3QgKjo4MD4KRG9jdW1lbnRSb290IC91c3Ivc2hhcmUvZG9jL2FwYWNoZTIvCjwvVmlydHVhbEhvc3Q+}

It seems ok (at least it is exactly as landscape charm), but apache2 is not
using this info somehow (i've looked over the hook's code too, and it
should).


> My other bit of advice is to check out the landscape charm.  While much
> more complicated than an example, it does successfully use the
> vhost-config hook:
>
>   https://code.launchpad.net/~landscape/landscape-charm/stable
>

I've already checked it, it was a good reference.
I've corrected the relation_set,

I'm a bit lost here.
Any idea?

Thanks in advance!

-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.unixono.com.ar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150128/adc25d94/attachment.html>


More information about the Juju mailing list