06020bc48f
Change-Id: I7eecc6c6df45c92ea7d9bf15ad3ad2c74e35c9fe
82 lines
4.6 KiB
Plaintext
Executable File
82 lines
4.6 KiB
Plaintext
Executable File
#####################################
|
|
# Config File for Compass Installer #
|
|
#####################################
|
|
|
|
# OS_INSTALLER indicates the tool for OS provisioning, default is 'cobbler'.
|
|
export OS_INSTALLER=${OS_INSTALLER:-cobbler}
|
|
|
|
# PACKAGE_INSTALLER indicates the tool for Package provisioning, default is 'chef'.
|
|
export PACKAGE_INSTALLER=${PACKAGE_INSTALLER:-chef}
|
|
|
|
# service NIC
|
|
export NIC=${NIC:-}
|
|
|
|
# DHCP config
|
|
# SUBNET variable specifies the subnet for DHCP server. Example: 192.168.0.0/16
|
|
export SUBNET=${SUBNET:-}
|
|
# DHCP option router address(Default is your management interface IP address )"
|
|
export OPTION_ROUTER=${OPTION_ROUTER:-}
|
|
# The IP range for DHCP clients (Default: local subnet start from 100 to 254)
|
|
export IP_START=${IP_START:-}
|
|
export IP_END=${IP_END:-}
|
|
# TFTP server's IP address(Default: Management Interface/eth0 IP)
|
|
export NEXTSERVER=${NEXTSERVER:-}
|
|
|
|
# the domains covered by nameserver
|
|
export NAMESERVER_DOMAINS=${NAMESERVER_DOMAINS:-}
|
|
|
|
# set the default cobbler user "cobbler" password, if not set, the default will be cobbler/cobbler
|
|
export CBLR_USER=${CBLR_USER:-}
|
|
export CBLR_PASSWD=${CBLR_PASSWD:-}
|
|
|
|
export IMAGE_TYPE=${IMAGE_TYPE:-"CentOS"}
|
|
export IMAGE_TYPE_OTHER=${IMAGE_TYPE_OTHER:-"el"}
|
|
export IMAGE_VERSION_MAJOR=${IMAGE_VERSION_MAJOR:-"6"}
|
|
export IMAGE_VERSION_NINOR=${IMAGE_VERSION_MINOR:-"5"}
|
|
export IMAGE_VERSION=${IMAGE_VERSION:-"${IMAGE_VERSION_MAJOR}.${IMAGE_VERSION_MINOR}"}
|
|
export IMAGE_NAME=${IMAGE_NAME:-"${IMAGE_TYPE}-${IMAGE_VERSION}"}
|
|
export IMAGE_ARCH=${IMAGE_ARCH:-"x86_64"}
|
|
|
|
export CENTOS_IMAGE_TYPE=${CENTOS_IMAGE_TYPE:-"CentOS"}
|
|
export CENTOS_IMAGE_TYPE_OTHER=${CENTOS_IMAGE_TYPE_OTHER:-"el"}
|
|
export CENTOS_IMAGE_VERSION_MAJOR=${CENTOS_IMAGE_VERSION_MAJOR:-"6"}
|
|
export CENTOS_IMAGE_VERSION_MINOR=${CENTOS_IMAGE_VERSION_MINOR:-"5"}
|
|
export CENTOS_IMAGE_VERSION=${CENTOS_IMAGE_VERSION:-"${CENTOS_IMAGE_VERSION_MAJOR}.${CENTOS_IMAGE_VERSION_MINOR}"}
|
|
export CENTOS_IMAGE_NAME=${CENTOS_IMAGE_NAME:-"${CENTOS_IMAGE_TYPE}-${CENTOS_IMAGE_VERSION}"}
|
|
export CENTOS_IMAGE_ARCH=${CENTOS_IMAGE_ARCH:-"x86_64"}
|
|
export CENTOS_IMAGE_SOURCE=${CENTOS_IMAGE_SOURCE:-"http://mirror.rackspace.com/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION_MAJOR}/isos/${CENTOS_IMAGE_ARCH}/${CENTOS_IMAGE_NAME}-${CENTOS_IMAGE_ARCH}-minimal.iso"}
|
|
|
|
export UBUNTU_IMAGE_TYPE=${UBUNTU_IMAGE_TYPE:-"Ubuntu"}
|
|
export UBUNTU_IMAGE_VERSION_MAJOR=${UBUNTU_IMAGE_VERSION_MAJOR:-"12"}
|
|
export UBUNTU_IMAGE_VERSION_MINOR=${UBUNTU_IMAGE_VERSION_MINOR:-"04"}
|
|
export UBUNTU_IMAGE_PATCH_VERSION=${UBUNTU_IMAGE_PATCH_VERSION:=".4"}
|
|
export UBUNTU_IMAGE_VERSION=${UBUNTU_IMAGE_VERSION:-"${UBUNTU_IMAGE_VERSION_MAJOR}.${UBUNTU_IMAGE_VERSION_MINOR}"}
|
|
export UBUNTU_IMAGE_NAME=${UBUNTU_IMAGE_NAME:-"${UBUNTU_IMAGE_TYPE}-${UBUNTU_IMAGE_VERSION}"}
|
|
export UBUNTU_IMAGE_ARCH=${UBUNTU_IMAGE_ARCH:-"x86_64"}
|
|
export UBUNTU_IMAGE_ARCH_OTHER=${UBUNTU_IMAGE_ARCH_OTHER:-"amd64"}
|
|
export UBUNTU_IMAGE_SOURCE=${UBUNTU_IMAGE_SOURCE:-"http://releases.ubuntu.com/${UBUNTU_IMAGE_VERSION}/${UBUNTU_IMAGE_TYPE,,}-${UBUNTU_IMAGE_VERSION}${UBUNTU_IMAGE_PATCH_VERSION}-server-${UBUNTU_IMAGE_ARCH_OTHER}.iso"}
|
|
|
|
export COBBLER_PASSWORD=${COBBLER_PASSWORD:-"cobbler"}
|
|
|
|
# Currently the use of Javascript MVC is set to version 3.2.4
|
|
export JS_MVC=${JS_MVC:-"javascriptmvc-3.2.4"}
|
|
|
|
# set the chef packages download path
|
|
export CHEF_SRV=${CHEF_SRV:-"http://opscode-omnibus-packages.s3.amazonaws.com/${IMAGE_TYPE_OTHER}/${IMAGE_VERSION_MAJOR}/${IMAGE_ARCH}/chef-server-11.0.8-1.${IMAGE_TYPE_OTHER}${IMAGE_VERSION_MAJOR}.${IMAGE_ARCH}.rpm"}
|
|
export CHEF_CLIENT=${CHEF_CLIENT:-"http://opscode-omnibus-packages.s3.amazonaws.com/${IMAGE_TYPE_OTHER}/${IMAGE_VERSION_MAJOR}/${IMAGE_ARCH}/chef-11.8.0-1.${IMAGE_TYPE_OTHER}${IMAGE_VERSION_MAJOR}.${IMAGE_ARCH}.rpm"}
|
|
export CENTOS_CHEF_CLIENT=${CENTOS_CHEF_CLIENT:-"http://opscode-omnibus-packages.s3.amazonaws.com/${CENTOS_IMAGE_TYPE_OTHER}/${CENTOS_IMAGE_VERSION_MAJOR}/${CENTOS_IMAGE_ARCH}/chef-11.8.0-1.${CENTOS_IMAGE_TYPE_OTHER}${CENTOS_IMAGE_VERSION_MAJOR}.${CENTOS_IMAGE_ARCH}.rpm"}
|
|
export UBUNTU_CHEF_CLIENT=${UBUNTU_CHEF_CLIENT:-"http://opscode-omnibus-packages.s3.amazonaws.com/${UBUNTU_IMAGE_TYPE,,}/${UBUNTU_IMAGE_VERSION}/${UBUNTU_IMAGE_ARCH}/chef_11.8.0-1.${UBUNTU_IMAGE_TYPE,,}.${UBUNTU_IMAGE_VERSION}_${UBUNTU_IMAGE_ARCH_OTHER}.deb"}
|
|
# Set Chef password for Chef web UI
|
|
export CHEF_PASSWD=${CHEF_PASSWD:-"root1234"}
|
|
|
|
# Set Compass-web and Compass-adpater variables
|
|
export WEB_HOME=${WEB_HOME:-'/tmp/web'}
|
|
export ADAPTERS_HOME=${ADAPTERS_HOME:-'/tmp/adapter'}
|
|
export WEB_SOURCE=${WEB_SOURCE:-}
|
|
export ADAPTERS_SOURCE=${ADAPTERS_SOURCE:-}
|
|
|
|
# Set compass environment
|
|
export SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
export COMPASSDIR=${SCRIPT_DIR}/..
|
|
export TESTMODE=${TESTMODE:-"False"}
|