This script will set the initial configuration settings when deploying from a vmware template.
To download the scripts:
source /etc/lsb-release
git clone -b $DISTRIB_CODENAME git://github.com/lmbbox/Ubuntu-Server-Deploy.git deploy
To setup the scripts on next login:
sudo deploy/reset.sh
To manually run the scripts:
sudo deploy/deploy.sh
Build a new template by following the steps below. This implies you know the basics already.
-
Install Ubuntu with LVM. Set swap size.
-
Install updates.
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
-
Install SSH and Git along with any other defaults you want.
sudo apt-get install ssh openssh-server ntp ntpdate curl git subversion tofrodos
-
Install Open VM Tools (Server installs with no GUI).
sudo apt-get install --no-install-recommends linux-headers-virtual open-vm-dkms open-vm-tools
Add options to allow loading of variables from local.d scripts named the same as deploy.d scripts or using conf files.
Add deployment scripts for:
pound
varnish
nginx
php-cli
php-fpm
suphp
solr with authentication (https://www.drupal.org/node/967628)