~ubuntu-branches/ubuntu/raring/juju/raring-201304221742

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#cloud-config
apt_update: true
apt_upgrade: true
apt_proxy: 'superproxy:37337'
apt_sources:
- {source: 'ppa:juju/0.6'}
machine-data: {juju-provider-type: dummy, juju-zookeeper-hosts: 'cotswold:2181,longleat:2181',
  machine-id: passport}
output: {all: '| tee -a /var/log/cloud-init-output.log'}
packages: [bzr, byobu, tmux, python-setuptools, python-twisted, python-txaws, python-zookeeper,
  juju]
runcmd: [sudo mkdir -p /var/lib/juju, sudo mkdir -p /var/log/juju, 'cat >> /etc/init/juju-machine-agent.conf
    <<EOF

    description "Juju machine agent"

    author "Juju Team <juju@lists.ubuntu.com>"


    start on runlevel [2345]

    stop on runlevel [!2345]

    respawn


    env JUJU_MACHINE_ID="passport"

    env JUJU_ZOOKEEPER="cotswold:2181,longleat:2181"


    exec python -m juju.agents.machine --nodaemon --logfile /var/log/juju/machine-agent.log
    --session-file /var/run/juju/machine-agent.zksession >> /tmp/juju-machine-agent.output
    2>&1

    EOF

    ', /sbin/start juju-machine-agent]
ssh_authorized_keys: [chubb]