How to open port with juju when no application is instlaled?

John Meinel john at arbash-meinel.com
Fri Nov 24 04:08:31 UTC 2017


I had thought of that, but it only works if you then 'juju expose
postgresql' which would also expose the other ports of postgres

John
=:->

On Nov 23, 2017 23:03, "Tim Penhey" <tim.penhey at canonical.com> wrote:

> I think you might be able to use:
>
>   juju run postgresql/0 'open-port 80'
>
> Tim
>
> On 24/11/17 06:54, Akshat Jiwan Sharma wrote:
> > Hi,
> >
> > I've used juju to deploy postgres on aws. On the same machine I've
> > installed an nginx server manually (i.e without juju) that listens on
> > ports 80 and 443. I want both of these ports to be open but juju command
> > open-port only works when an application is exposed.
> >
> > /open-port
> >
> > open-port registers a port or range to open on the public-interface. On
> > public clouds the port will only be open while the application is
> exposed./
> >
> > Now according to juju I only have one application (postgres) on my
> > machine, that I don't want exposed anyway. However I do want ports 80
> > and 443 to be accessible  publicly. Is adding a policy to aws manually
> > my only option here?
> >
> >
> > Thanks,
> >
> > Akshat
> >
> >
> >
> >
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20171124/ccdc4a64/attachment.html>


More information about the Juju mailing list