| Jesse Andrews | 8b3eb5f | 2011-11-05 16:05:14 -0700 | [diff] [blame] | 1 | #cloud-config | 
 | 2 | #apt_update: false | 
 | 3 | #apt_upgrade: true | 
 | 4 | #packages: [ bzr, pastebinit, ubuntu-dev-tools, ccache, bzr-builddeb, vim-nox, git-core, lftp ] | 
 | 5 |  | 
 | 6 | apt_sources: | 
 | 7 |  - source: ppa:smoser/ppa | 
 | 8 |  | 
 | 9 | disable_root: True | 
 | 10 |  | 
 | 11 | mounts: | 
 | 12 |  - [ ephemeral0, None ] | 
 | 13 |  - [ swap, None ] | 
 | 14 |  | 
 | 15 | ssh_import_id: [smoser ] | 
 | 16 |  | 
 | 17 | sm_misc: | 
 | 18 |  - &user_setup | | 
 | 19 |    set -x; exec > ~/user_setup.log 2>&1 | 
 | 20 |    echo "starting at $(date -R)" | 
 | 21 |    echo "set -o vi" >> ~/.bashrc | 
 | 22 |    cat >> ~/.profile <<EOF | 
 | 23 |    export EDITOR=vi | 
 | 24 |    EOF | 
 | 25 |  | 
 | 26 | runcmd: | 
 | 27 |  - [ sudo, -Hu, ubuntu, sh, -c, 'grep "cloud-init.*running" /var/log/cloud-init.log > ~/runcmd.log' ] | 
 | 28 |  - [ sudo, -Hu, ubuntu, sh, -c, 'read up sleep < /proc/uptime; echo $(date): runcmd up at $up | tee -a ~/runcmd.log' ] | 
 | 29 |  - [ sudo, -Hu, ubuntu, sh, -c, *user_setup ] | 
 | 30 |  | 
 | 31 | password: passw0rd | 
 | 32 | chpasswd: { expire: False } |