diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:17:08 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:17:08 -0700 |
commit | f141a7bea98e40a6159701978c1bd92ea993a281 (patch) | |
tree | 49505229cbaaa697be7c74218fa882e56c7814fb /buildscripts | |
parent | b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc (diff) | |
download | chessh-f141a7bea98e40a6159701978c1bd92ea993a281.tar.gz chessh-f141a7bea98e40a6159701978c1bd92ea993a281.zip |
Fix proxy files and erlang hosts
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/build/build.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/buildscripts/build/build.sh b/buildscripts/build/build.sh index d0b59c4..e41730d 100755 --- a/buildscripts/build/build.sh +++ b/buildscripts/build/build.sh @@ -85,7 +85,7 @@ listen ssh balance leastconn mode tcp -$(echo "${server_node_ids[@]}" | python3 -c "print(\"\\n\".join([f\" server pi{i} 192.168.100.{i}:${ssh_port} check inter 10s fall rise 1 \" for i in input().split()]))") +$(echo "${server_node_ids[@]}" | python3 -c "print(\"\\n\".join([f\"\\tserver pi{i} 192.168.100.{i}:${ssh_port} check inter 30s fall 5 rise 1 \" for i in input().split()]))") " ssh_opts="-oStrictHostKeyChecking=no" @@ -124,7 +124,7 @@ function reload_loadbalancer_conf() { sudo systemctl restart nginx - printf '$ha_proxy_cfg' | sudo tee $ha_proxy_cfg_file + printf "$ha_proxy_cfg" | sudo tee $ha_proxy_cfg_file sudo systemctl restart haproxy } @@ -147,7 +147,7 @@ function build_frontend_nodes() { function build_server() { node_id=$1 - node_conn=$(make_pi_node_conn_str $node_id) + node_conn=$(make_pi_node_conn_str $node_id) temp_file=$(mktemp) cp "${build_dir}/.env" $temp_file @@ -167,7 +167,7 @@ function build_server() { function build_server_nodes() { copy_ssh_keys - "$(printf "'192.168.100.%s'\n" ${server_node_ids[@]})" > $erlang_hosts_file + printf "'192.168.100.%s'\n" ${server_node_ids[@]} > $erlang_hosts_file for node_id in "${server_node_ids[@]}" do @@ -177,4 +177,4 @@ function build_server_nodes() { reload_loadbalancer_conf build_server_nodes -build_frontend_nodes +#build_frontend_nodes |