Remote Access with Juju

Akshat Jiwan Sharma akshatjiwan at gmail.com
Sun Oct 29 13:06:03 UTC 2017


Hi,

You can run commands on a juju deployed machine using juju run.
For the most part juju run command would be more than sufficient
but there is also an option to ssh into a machine.
Here is summary of juju run command from the documentation
<https://jujucharms.com/docs/2.2/commands>.

Usage: juju run [options] <commands>

Summary:

Run the commands on the remote targets specified.
Openvpn is a charm like any other.
Once you've deployed openvpn on a machine you can then  `juju run`
from your terminal to execute arbitrary commands on that machine.

The run command also takes in parameters that allow you to specify the
targets
based upon applications and models instead of machine identifiers.

ex:-

 juju run --all --model=controller:model 'ls'

This will run "ls" command on all the machines with that match the
"controller:model" key

Essentially all you have to do is to somehow identify the targets on which
you want to run
your commands. And you do that by using one of the many options that the
command provides
to filter the targets.

Hope that helps!

Thanks,
Akshat


On Sun, Oct 29, 2017 at 4:30 AM, Naas Si Ahmed <naas.si.ahmed at gmail.com>
wrote:

> I'm working on a Juju project which requires remote configuration.
>
> Does Juju provide any solution to remotely access to services ?
>
> And what about the charm openvpn?
>
> Thanks.
>
>
> --
> 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/20171029/dc1ae975/attachment.html>


More information about the Juju mailing list