fe42570fd4
- Atomic official site download speed is slow - switching atomic release rpm to remi-release Change-Id: I882a9a4f1986ef3730b434918d1043d3c133ae97
113 lines
8.2 KiB
Plaintext
Executable File
113 lines
8.2 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:-package}
|
|
|
|
# set remi release url
|
|
# export ATOMIC=${ATOMIC:-http://www6.atomicorp.com/channels/atomic/${IMAGE_TYPE,,}/${IMAGE_VERSION_MAJOR}/${IMAGE_ARCH}/RPMS/atomic-release-1.0-19.${IMAGE_TYPE_OTHER}${IMAGE_VERSION_MAJOR}.art.noarch.rpm}
|
|
export REMI=${REMI:-http://rpms.famillecollet.com/enterprise/remi-release-6.rpm}
|
|
|
|
# service NIC
|
|
export NIC=${NIC:-}
|
|
export IPADDR=${IPADDR:-}
|
|
export NETMASK=${NETMASK:-}
|
|
|
|
# DHCP config
|
|
# 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:-}
|
|
export NAMESERVER_REVERSE_ZONES=${NAMESERVER_REVERSE_ZONES:-}
|
|
|
|
# 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:-}
|
|
|
|
# set default local repo flag
|
|
export LOCAL_REPO=${LOCAL_REPO:-}
|
|
export SUPPORT_CENTOS_6_5=${SUPPORT_CENTOS_6_5:-}
|
|
export SUPPORT_CENTOS_6_6=${SUPPORT_CENTOS_6_6:-}
|
|
export SUPPORT_CENTOS_7_0=${SUPPORT_CENTOS_7_0:-}
|
|
export SUPPORT_UBUNTU_12_04=${SUPPORT_UBUNTU_12_04:-}
|
|
export SUPPORT_UBUNTU_14_04=${SUPPORT_UBUNTU_14_04:-}
|
|
export SUPPORT_SLES_11SP3=${SUPPORT_SLES_11SP3:-}
|
|
|
|
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_6_5_IMAGE_SOURCE=${CENTOS_6_5_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/6.5/CentOS-6.5-x86_64.iso"}
|
|
export CENTOS_6_5_IMAGE_SOURCE_ASIA=${CENTOS_6_5_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/6.5/CentOS-6.5-x86_64.iso"}
|
|
export CENTOS_6_6_IMAGE_SOURCE=${CENTOS_6_6_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/6.6/CentOS-6.6-x86_64.iso"}
|
|
export CENTOS_6_6_IMAGE_SOURCE_ASIA=${CENTOS_6_6_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/6.6/CentOS-6.6-x86_64.iso"}
|
|
export CENTOS_7_0_IMAGE_SOURCE=${CENTOS_7_0_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/7.0/CentOS-7.0-x86_64.iso"}
|
|
export CENTOS_7_0_IMAGE_SOURCE_ASIA=${CENTOS_7_0_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/7.0/CentOS-7.0-x86_64.iso"}
|
|
export UBUNTU_12_04_IMAGE_SOURCE=${UBUNTU_12_04_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/ubuntu/12.04/Ubuntu-12.04-x86_64.iso"}
|
|
export UBUNTU_12_04_IMAGE_SOURCE_ASIA=${UBUNTU_12_04_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/ubuntu/12.04/Ubuntu-12.04-x86_64.iso"}
|
|
export UBUNTU_14_04_IMAGE_SOURCE=${UBUNTU_14_04_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/ubuntu/14.04/Ubuntu-14.04-x86_64.iso"}
|
|
export UBUNTU_14_04_IMAGE_SOURCE_ASIA=${UBUNTU_14_04_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/ubuntu/14.04/Ubuntu-14.04-x86_64.iso"}
|
|
export SLES_11SP3_IMAGE_SOURCE=${SLES_11SP3_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/sles/11sp3/sles-11sp3-x86_64.iso"}
|
|
export SLES_11SP3_IMAGE_SOURCE_ASIA=${SLES_11SP3_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/sles/11sp3/sles-11sp3-x86_64.iso"}
|
|
export UVP_11SP3_IMAGE_SOURCE=${UVP_11SP3_IMAGE_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/uvp/11sp3/uvp-os-11sp3-x86_64.tar.gz"}
|
|
export UVP_11SP3_IMAGE_SOURCE_ASIA=${UVP_11SP3_IMAGE_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/uvp/11sp3/uvp-os-11sp3-x86_64.tar.gz"}
|
|
|
|
export CENTOS_6_5_PPA_REPO_SOURCE=${CENTOS_6_5_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/6.5/centos_6_5_ppa_repo.tar.gz"}
|
|
export CENTOS_6_5_PPA_REPO_SOURCE_ASIA=${CENTOS_6_5_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/6.5/centos_6_5_ppa_repo.tar.gz"}
|
|
export CENTOS_6_6_PPA_REPO_SOURCE=${CENTOS_6_6_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/6.6/centos_6_6_ppa_rep.tar.gz"}
|
|
export CENTOS_6_6_PPA_REPO_SOURCE_ASIA=${CENTOS_6_6_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/6.6/centos_6_6_ppa_rep.tar.gz"}
|
|
export CENTOS_7_0_PPA_REPO_SOURCE=${CENTOS_7_0_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/centos/7.0/centos_7_0_ppa_rep.tar.gz"}
|
|
export CENTOS_7_0_PPA_REPO_SOURCE_ASIA=${CENTOS_7_0_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/centos/7.0/centos_7_0_ppa_rep.tar.gz"}
|
|
export UBUNTU_12_04_PPA_REPO_SOURCE=${UBUNTU_12_04_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/ubuntu/12.04/ubuntu_12_04_ppa_repo.tar.gz"}
|
|
export UBUNTU_12_04_PPA_REPO_SOURCE_ASIA=${UBUNTU_12_04_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/ubuntu/12.04/ubuntu_12_04_ppa_repo.tar.gz"}
|
|
export UBUNTU_14_04_PPA_REPO_SOURCE=${UBUNTU_14_04_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/ubuntu/14.04/ubuntu_14_04_ppa_repo.tar.gz"}
|
|
export UBUNTU_14_04_PPA_REPO_SOURCE_ASIA=${UBUNTU_14_04_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/ubuntu/14.04/ubuntu_14_04_ppa_repo.tar.gz"}
|
|
export SLES_11SP3_PPA_REPO_SOURCE=${SLES_11SP3_PPA_REPO_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/sles/11sp3/sles_11sp3_ppa_repo.tar.gz"}
|
|
export SLES_11SP3_PPA_REPO_SOURCE_ASIA=${SLES_11SP3_PPA_REPO_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/sles/11sp3/sles_11sp3_ppa_repo.tar.gz"}
|
|
|
|
export COBBLER_PASSWORD=${COBBLER_PASSWORD:-"cobbler"}
|
|
|
|
export COBBLER_LOADERS_SOURCE=${COBBLER_LOADERS_SOURCE:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/loaders.tar.gz"}
|
|
export COBBLER_LOADERS_SOURCE_ASIA=${COBBLER_LOADERS_SOURCE_ASIA:-"http://huawei-repo.uubright.com/repos/compass/loaders.tar.gz"}
|
|
|
|
# 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_SRV_HUAWEI=${CHEF_SRV_HUAWEI:-"http://huawei-repo.uubright.com/repos/compass/${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:-"https://opscode-omnibus-packages.s3.amazonaws.com/${IMAGE_TYPE_OTHER}/${IMAGE_VERSION_MAJOR}/${IMAGE_ARCH}/chef-11.10.4-1.${IMAGE_TYPE_OTHER}${IMAGE_VERSION_MAJOR}.${IMAGE_ARCH}.rpm"}
|
|
export CHEF_CLIENT_HUAWEI=${CHEF_CLIENT_HUAWEI:-"http://huawei-repo.uubright.com/repos/compass/${IMAGE_TYPE_OTHER}/${IMAGE_VERSION_MAJOR}/${IMAGE_ARCH}/chef-11.10.4-1.${IMAGE_TYPE_OTHER}${IMAGE_VERSION_MAJOR}.${IMAGE_ARCH}.rpm"}
|
|
|
|
# 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"}
|
|
|
|
# Set Local Repo sources
|
|
export LOCAL_REPO_US=${LOCAL_REPO_US:-"https://s3-us-west-1.amazonaws.com/compass-local-repo"}
|
|
export LOCAL_REPO_HUAWEI=${LOCAL_REPO_HUAWEI:-"http://huawei-repo.uubright.com/repos/compass"}
|