Chepina

by cicloid
5 deployments · 4 still active · last rev. 6 years ago

Ready to Chef bootstrap!
ZSH
Oh My ZSH
Postfix Loopback

Compatible with: No distros currently supported
						#!/bin/bash

# <udf name="privip" label="private ip to install to eth0:0">
# <udf name="hostname" label="hostname">
# <udf name="ubuntu_mirror" label="ubuntu mirror url" default="http://us.archive.ubuntu.com/ubuntu">
source <ssinclude StackScriptID="476">


# scripts used
source <ssinclude StackScriptID="1">		# StackScript Lib by Linode
source <ssinclude StackScriptID="629">		# LEMPy_lib

# functions to use from sourced scripts
logfile=/root/stackscript.log

lempy_system_update_aptitude							              # StackScriptID="629"
verygoodstuff                                           # StackScriptID="629" // Just the good stuff
postfix_install_loopback_only                           # StackScriptID="1"
echo "Setting up host with chef" >> $logfile
echo "Adjusting sources.list (destructively)" >> $logfile
cat >/etc/apt/sources.list <<EOF
deb $UBUNTU_MIRROR lucid main restricted universe multiverse
deb-src $UBUNTU_MIRROR lucid main restricted universe multiverse

deb $UBUNTU_MIRROR lucid-updates main restricted universe multiverse
deb-src $UBUNTU_MIRROR lucid-updates main restricted universe multiverse

# 
# Security updates 
#
deb http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse 
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse 
EOF

apt-get -y update
lempy_ree