summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-02-01 08:51:20 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-02-01 08:51:20 -0700
commit3b8d0c44587d25fc7b034dc48e4c8db9259da615 (patch)
treeddc02d0d9e2669b542b749ce923938e4ac47596e /buildscripts
parentbd49a76dc3a26570fea6722f7ee94688420dc9b4 (diff)
downloadchessh-3b8d0c44587d25fc7b034dc48e4c8db9259da615.tar.gz
chessh-3b8d0c44587d25fc7b034dc48e4c8db9259da615.zip
Multicast instead of .hosts.erlang
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/build/build.sh5
-rwxr-xr-xbuildscripts/build/build_server.sh1
2 files changed, 0 insertions, 6 deletions
diff --git a/buildscripts/build/build.sh b/buildscripts/build/build.sh
index 482a577..3cc5717 100755
--- a/buildscripts/build/build.sh
+++ b/buildscripts/build/build.sh
@@ -10,7 +10,6 @@ server_node_ids=(4 5 6)
build_dir="${HOME}/src/chessh/buildscripts/build"
server_name="chessh.linux.usu.edu"
-erlang_hosts_file="${build_dir}/.hosts.erlang"
load_balancer_nginx_site_file="/etc/nginx/sites-enabled/${server_name}.conf"
ha_proxy_cfg_file="/etc/haproxy/haproxy.cfg"
ssl_cert_path="/etc/letsencrypt/live/${server_name}"
@@ -160,15 +159,11 @@ function build_server() {
scp $ssh_opts "${build_dir}/build_server.sh" $node_conn:~/
- scp $ssh_opts $erlang_hosts_file $node_conn:~/
-
ssh $ssh_opts $node_conn "~/build_server.sh"
}
function build_server_nodes() {
copy_ssh_keys
- printf "'192.168.100.%s'\n" ${server_node_ids[@]} > $erlang_hosts_file
-
for node_id in "${server_node_ids[@]}"
do
build_server $node_id
diff --git a/buildscripts/build/build_server.sh b/buildscripts/build/build_server.sh
index 1857e6b..80e6e91 100755
--- a/buildscripts/build/build_server.sh
+++ b/buildscripts/build/build_server.sh
@@ -30,7 +30,6 @@ fi
# Build
cd $chessh_path
[ -d "$chessh_path/priv/keys" ] && cp ~/keys/* "$chessh_path/priv/keys/" || cp -r ~/keys "$chessh_path/priv"
-mv $HOME/.hosts.erlang .
sudo docker build . -t chessh/server
# Systemd service