LEFT | RIGHT |
(no file at all) | |
1 #cloud-config | 1 #cloud-config |
2 apt_update: true | 2 apt_update: true |
3 apt_upgrade: true | 3 apt_upgrade: true |
4 machine-data: {juju-provider-type: dummy, juju-zookeeper-hosts: 'cotswold:2181,l
ongleat:2181', | 4 machine-data: {juju-provider-type: dummy, juju-zookeeper-hosts: 'cotswold:2181,l
ongleat:2181', |
5 machine-id: passport} | 5 machine-id: passport} |
6 output: {all: '| tee -a /var/log/cloud-init-output.log'} | 6 output: {all: '| tee -a /var/log/cloud-init-output.log'} |
7 packages: [bzr, byobu, tmux, python-setuptools, python-twisted, python-txaws, py
thon-zookeeper, | 7 packages: [bzr, byobu, tmux, python-setuptools, python-twisted, python-zookeeper
, juju, python-txaws] |
8 juju] | |
9 runcmd: [sudo mkdir -p /var/lib/juju, sudo mkdir -p /var/log/juju, 'cat >> /etc/
init/juju-machine-agent.conf | 8 runcmd: [sudo mkdir -p /var/lib/juju, sudo mkdir -p /var/log/juju, 'cat >> /etc/
init/juju-machine-agent.conf |
10 <<EOF | 9 <<EOF |
11 | 10 |
12 description "Juju machine agent" | 11 description "Juju machine agent" |
13 | 12 |
14 author "Juju Team <juju@lists.ubuntu.com>" | 13 author "Juju Team <juju@lists.ubuntu.com>" |
15 | 14 |
16 | 15 |
17 start on runlevel [2345] | 16 start on runlevel [2345] |
18 | 17 |
19 stop on runlevel [!2345] | 18 stop on runlevel [!2345] |
20 | 19 |
21 respawn | 20 respawn |
22 | 21 |
23 | 22 |
24 env JUJU_MACHINE_ID="passport" | 23 env JUJU_MACHINE_ID="passport" |
25 | 24 |
26 env JUJU_ZOOKEEPER="cotswold:2181,longleat:2181" | 25 env JUJU_ZOOKEEPER="cotswold:2181,longleat:2181" |
27 | 26 |
28 | 27 |
29 exec python -m juju.agents.machine --nodaemon --logfile /var/log/juju/machin
e-agent.log | 28 exec python -m juju.agents.machine --nodaemon --logfile /var/log/juju/machin
e-agent.log |
30 --session-file /var/run/juju/machine-agent.zksession >> /tmp/juju-machine-ag
ent.output | 29 --session-file /var/run/juju/machine-agent.zksession >> /tmp/juju-machine-ag
ent.output |
31 2>&1 | 30 2>&1 |
32 | 31 |
33 EOF | 32 EOF |
34 | 33 |
35 ', /sbin/start juju-machine-agent] | 34 ', /sbin/start juju-machine-agent] |
36 ssh_authorized_keys: [chubb] | 35 ssh_authorized_keys: [chubb] |
LEFT | RIGHT |