diff options
author | Justin chi <chigang@huawei.com> | 2016-12-14 07:28:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-14 07:28:39 +0000 |
commit | 8a4b5bd61fc39c259952871c4447297f3184a0ba (patch) | |
tree | 93e53a021e67e7557d7a87785d90574189cf1f4d /deploy/compass_vm.sh | |
parent | b4088d7d26058f5df71c612a3075307263df1503 (diff) | |
parent | 9fa28e023cb149256702e86628da72ea3372c250 (diff) |
Merge "Support compute node expansion with ceph-osd"
Diffstat (limited to 'deploy/compass_vm.sh')
-rwxr-xr-x | deploy/compass_vm.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh index 61e27051..b07b5081 100755 --- a/deploy/compass_vm.sh +++ b/deploy/compass_vm.sh @@ -70,8 +70,27 @@ function _inject_dashboard_conf() { done } +function _inject_ceph_expansion_conf() { + for os in mitaka mitaka_xenial newton_xenial osp9; do + CONF_TEMPLATES_DIR=/etc/compass/templates/ansible_installer/openstack_$os/vars + if [[ "$EXPANSION" == "true" ]]; then + cmd=" + sed -i '/compute_expansion/d' ${CONF_TEMPLATES_DIR}/HA-ansible-multinodes.tmpl; \ + echo compute_expansion: True >> ${CONF_TEMPLATES_DIR}/HA-ansible-multinodes.tmpl; \ + " + else + cmd=" + sed -i '/compute_expansion/d' ${CONF_TEMPLATES_DIR}/HA-ansible-multinodes.tmpl; \ + echo compute_expansion: False >> ${CONF_TEMPLATES_DIR}/HA-ansible-multinodes.tmpl; \ + " + fi + exec_cmd_on_compass $cmd + done +} + function inject_compass_conf() { _inject_dashboard_conf + _inject_ceph_expansion_conf } function refresh_compass_core () { |