Sha256: 43e1545e0387229893272c14c59f1296fe51942e0c5083e2285beb1bf66c9643
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
# ensure the nat is up before configuring while true; do nat_status=$(curl -s -o /dev/null -I -w "%{http_code}" -m 2 http://bex-status.s3.amazonaws.com/status.json) if [ "${nat_status}" = "200" ]; then break fi sleep 2 done # configure hostname from metadata service private_hostname=$(curl http://169.254.169.254/latest/meta-data/hostname) echo "${private_hostname}" > /etc/hostname hostname -b -F /etc/hostname short_hostname=$(hostname -s) sed -i '/127\.0\.0\.1/d' /etc/hosts cat >>/etc/hosts <<EOF 127.0.0.1 localhost ${short_hostname} ${private_hostname} EOF # disable long update-initramfs calls (we're ephemeral!) sed -i 's/=yes/=no/g' /etc/initramfs-tools/update-initramfs.conf echo 'deb http://get.docker.io/ubuntu docker main' > /etc/apt/sources.list.d/docker.list curl -sL "https://get.docker.io/gpg" | apt-key add - apt-get update apt-get upgrade -qy apt-get -qy install htop tree btrfs-tools xz-utils cloud-utils if [ -b "/dev/xvdd" ]; then mkfs.btrfs -L datavols /dev/xvdd mkdir -p /volumes mount /dev/xvdd /volumes fi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stacco-0.1.17 | ./priv/cloud-init/common.before.sh |