Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Created September 10, 2013 21:47
Show Gist options
  • Select an option

  • Save viglesiasce/6516211 to your computer and use it in GitHub Desktop.

Select an option

Save viglesiasce/6516211 to your computer and use it in GitHub Desktop.
Content-Type: multipart/mixed; boundary="===============5423618256409275201=="
MIME-Version: 1.0
--===============5423618256409275201==
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="setup-sabnzbd.sh"
#!/bin/bash
export EC2_URL=http://10.0.1.91:8773/services/Eucalyptus
export EC2_ACCESS_KEY='REDACTED'
export EC2_SECRET_KEY='REDACTEDREDACTED'
instance_id=`curl http://169.254.169.254/latest/meta-data/instance-id`
instance_ip=`curl http://169.254.169.254/latest/meta-data/local-ipv4`
volume=vol-234234223
euca-attach-volume -i $instance_id $volume -d /dev/vdb
--===============5423618256409275201==
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
disable_root: false
apt_mirror: http://us.archive.ubuntu.com/ubuntu/
byobu_by_default: system
resize_rootfs: True
packages:
- ntp
--===============5423618256409275201==--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment