From 056eb6e4bb50118a39606aeb5f469d51079621b1 Mon Sep 17 00:00:00 2001 From: Nuriel Shem-Tov Date: Sun, 17 Jun 2018 20:04:10 +0200 Subject: [PATCH] Write installation options to override file, change log location --- fullnode_install.sh | 7 +++++++ roles/monitoring/tasks/main.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/fullnode_install.sh b/fullnode_install.sh index 1c8d0df..c3aec86 100644 --- a/fullnode_install.sh +++ b/fullnode_install.sh @@ -278,24 +278,31 @@ Select/unselect options using space and click Enter to proceed.\n" 24 78 5 \ exit 1 fi + rm /opt/iri-playbook/group_vars/all/z-installer-override.yml + read -a RESULTS_ARRAY <<< "$RESULTS" for CHOICE in "${RESULTS_ARRAY[@]}" do case $CHOICE in '"DISABLE_MONITORING"') SKIP_TAGS+=",monitoring_role" + echo "disable_monitoring: true" >>/opt/iri-playbook/group_vars/all/z-installer-override.yml ;; '"DISABLE_ZMQ_METRICS"') INSTALL_OPTIONS+=" -e iri_zmq_enabled=false" + echo "iri_zmq_enabled: false" >>/opt/iri-playbook/group_vars/all/z-installer-override.yml ;; '"ENABLE_NELSON"') INSTALL_OPTIONS+=" -e nelson_enabled=true" + echo "nelson_enabled: true" >>/opt/iri-playbook/group_vars/all/z-installer-override.yml ;; '"ENABLE_FIELD"') INSTALL_OPTIONS+=" -e field_enabled=true" + echo "field_enabled: true" >>/opt/iri-playbook/group_vars/all/z-installer-override.yml ;; '"ENABLE_HAPROXY"') INSTALL_OPTIONS+=" -e lb_bind_address=0.0.0.0" + echo "lb_bind_address: 0.0.0.0" >>/opt/iri-playbook/group_vars/all/z-installer-override.yml ;; *) ;; diff --git a/roles/monitoring/tasks/main.yml b/roles/monitoring/tasks/main.yml index 2db3c4f..7fda08c 100644 --- a/roles/monitoring/tasks/main.yml +++ b/roles/monitoring/tasks/main.yml @@ -1,3 +1,4 @@ - import_tasks: role.yml + when: disable_monitoring is not defined or disable_monitoring|bool != True tags: - monitoring_role