summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml2
-rw-r--r--deploy/adapters/ansible/roles/odl_cluster/tasks/01_04_install_pip_packages.yml2
-rwxr-xr-xdeploy/adapters/ansible/roles/odl_cluster/vars/main.yml3
-rwxr-xr-xdeploy/compass_vm.sh1
-rw-r--r--deploy/conf/compass.conf2
5 files changed, 4 insertions, 6 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml
index 4dd8860f..9592a0ae 100644
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/01_02_unarchive_odl_and_jdk.yml
@@ -23,4 +23,4 @@
- name: extract odl package
command: |
su -s /bin/sh -c "tar xzf /opt/{{ odl_pkg_name }} -C {{ odl_home }} \
- --strip-components 1 --no-overwrite-dir -k --skip-old-files" odl
+ --strip-components 1" odl
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/01_04_install_pip_packages.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/01_04_install_pip_packages.yml
index 2610d618..fa418c6c 100644
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/01_04_install_pip_packages.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/01_04_install_pip_packages.yml
@@ -14,9 +14,7 @@
tar xf /opt/{{ networking_odl_pkg_name }}
rm -rf /opt/{{ networking_odl_pkg_name }}
sed -i 's/^neutron-lib.*/neutron-lib/' {{ odl_pip }}/requirements.txt
- pip install -r {{ odl_pip }}/requirements.txt
tar zcf /opt/{{ networking_odl_pkg_name }} {{ odl_pip }}
- rm -rf {{ odl_pip }}
cd -
- name: odl pip package install
diff --git a/deploy/adapters/ansible/roles/odl_cluster/vars/main.yml b/deploy/adapters/ansible/roles/odl_cluster/vars/main.yml
index f038c7a9..a968e3ec 100755
--- a/deploy/adapters/ansible/roles/odl_cluster/vars/main.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/vars/main.yml
@@ -51,7 +51,6 @@ jdk8_script_name: install_jdk8.tar
common_packages_noarch: []
-odl_pip:
- - networking-odl-3.2.0
+odl_pip: networking-odl-3.2.0
networking_odl_pkg_name: networking-odl-3.2.0.tar.gz
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index 294f2bee..61993716 100755
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -39,6 +39,7 @@ function set_compass_machine() {
function install_compass() {
local inventory_file=$compass_vm_dir/inventory.file
sed -i "s/mgmt_next_ip:.*/mgmt_next_ip: ${COMPASS_SERVER}/g" $WORK_DIR/installer/compass-install/install/group_vars/all
+ sed -i "s/timezone:.*/timezone: ${TIMEZONE}/g" $WORK_DIR/installer/compass-install/install/group_vars/all
echo "compass_nodocker ansible_ssh_host=$MGMT_IP ansible_ssh_port=22" > $inventory_file
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook -e pipeline=true --private-key=$rsa_file --user=root --connection=ssh --inventory-file=$inventory_file $WORK_DIR/installer/compass-install/install/$1
exit_status=$?
diff --git a/deploy/conf/compass.conf b/deploy/conf/compass.conf
index 0bae6d3b..6e38d703 100644
--- a/deploy/conf/compass.conf
+++ b/deploy/conf/compass.conf
@@ -11,6 +11,6 @@ export COMPASS_EXTERNAL_IP=${COMPASS_EXTERNAL_IP:-}
export COMPASS_EXTERNAL_MASK=${COMPASS_EXTERNAL_MASK:-}
export COMPASS_EXTERNAL_GW=${COMPASS_EXTERNAL_GW:-}
export LANGUAGE="EN"
-export TIMEZONE="America/Los_Angeles"
+export TIMEZONE="Asia/Shanghai"
export NTP_SERVER="$COMPASS_SERVER"
export NAMESERVERS="$COMPASS_SERVER"