3 git clone http://git.openstack.org/stackforge/compass-core -b dev/experimental
6 source venv/bin/activate
7 pip install -i http://pypi.douban.com/simple -e .
8 if [[ ! -f /var/log/compass ]]; then
9 sudo mkdir /var/log/compass
10 sudo chown -R 777 /var/log/compass
12 if [[ ! -f /etc/compass ]]; then
13 sudo mkdir /etc/compass
14 sudo cp -rf conf/setting /etc/compass/.
16 cp bin/switch_virtualenv.py.template bin/switch_virtualenv.py
17 sed -i "s|\$PythonHome|$VIRTUAL_ENV|g" bin/switch_virtualenv.py
18 #source ../compass-install/ci/allinone.conf
19 bin/client.py --logfile= --loglevel=debug --logdir= --compass_server="${COMPASS_SERVER_URL}" \
20 --compass_user_email="${COMPASS_USER_EMAIL}" --compass_user_password="${COMPASS_USER_PASSWORD}" \
21 --cluster_name="${CLUSTER_NAME}" --language="${LANGUAGE}" --timezone="${TIMEZONE}" \
22 --hostnames="${HOSTNAMES}" --partitions="${PARTITIONS}" --subnets="${SUBNETS}" \
23 --adapter_os_pattern="${ADAPTER_OS_PATTERN}" --adapter_name="${ADAPTER_NAME}" \
24 --adapter_target_system_pattern="${ADAPTER_TARGET_SYSTEM_PATTERN}" \
25 --adapter_flavor_pattern="${ADAPTER_FLAVOR_PATTERN}" \
26 --http_proxy="${PROXY}" --https_proxy="${PROXY}" --no_proxy="${IGNORE_PROXY}" \
27 --ntp_server="${NTP_SERVER}" --dns_servers="${NAMESERVERS}" --domain="${DOMAIN}" \
28 --search_path="${SEARCH_PATH}" --default_gateway="${GATEWAY}" \
29 --server_credential="${SERVER_CREDENTIAL}" --local_repo_url="${LOCAL_REPO_URL}" \
30 --os_config_json_file="${OS_CONFIG_FILENAME}" --service_credentials="${SERVICE_CREDENTIALS}" \
31 --console_credentials="${CONSOLE_CREDENTIALS}" --host_networks="${HOST_NETWORKS}" \
32 --network_mapping="${NETWORK_MAPPING}" --package_config_json_file="${PACKAGE_CONFIG_FILENAME}" \
33 --host_roles="${HOST_ROLES}" --default_roles="${DEFAULT_ROLES}" --switch_ips="${SWITCH_IPS}" \
34 --machines=${machines//\'} --switch_credential="${SWITCH_CREDENTIAL}" \
35 --deployment_timeout="${DEPLOYMENT_TIMEOUT}" --${POLL_SWITCHES_FLAG} --dashboard_url="${DASHBOARD_URL}"
39 sudo vagrant destroy compass_nodocker
40 if [[ $deploy_result != 0 ]]; then
41 echo "deployment failed"
44 echo "deployment complete"