Skip to content

Commit

Permalink
Write installation options to override file, change log location
Browse files Browse the repository at this point in the history
  • Loading branch information
nuriel77 committed Jun 17, 2018
1 parent db184d3 commit 056eb6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fullnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
;;
Expand Down
1 change: 1 addition & 0 deletions roles/monitoring/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- import_tasks: role.yml
when: disable_monitoring is not defined or disable_monitoring|bool != True
tags:
- monitoring_role

0 comments on commit 056eb6e

Please sign in to comment.