Ubuntu Pastebin

Paste from deanman at Fri, 16 Dec 2016 10:29:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
$ # Get controller's lxc name and store it on an environmental variables
$ export CONTROLLER=`lxc list -c n | awk '/juju/{print $2}'`

$ # Gain shell access inside the LXD container of the juju controller
$ lxc exec $CONTROLLER bash

$ # Source the proxy configuration
$ source /home/ubuntu/.juju-proxy

$ # Stop juju daemon
$ systemctl stop jujud-machine-0

$ # Restart manually juju daemon
$ /var/lib/juju/init/jujud-machine-0/exec-start.sh &


$ # Leave shell session with juju controller
$ exit
Download as text