36 lines
1.4 KiB
Bash
Executable File
36 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -xe
|
|
|
|
cd ~/infra || exit
|
|
|
|
USER_NAME=virgil
|
|
#clear out old known_host entries
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.2" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.3" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.4" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.5" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.6" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.7" || true
|
|
ssh-keygen -f "/home/dtookey/.ssh/known_hosts" -R "10.1.1.8" || true
|
|
|
|
ssh -t ares "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/passwordless > /dev/null"
|
|
ssh ares "echo \"ares checked in\""
|
|
|
|
ssh -t artemis "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/passwordless > /dev/null"
|
|
ssh artemis "sudo sed -i -e 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/g' /etc/systemd/logind.conf"
|
|
ssh artemis "sudo systemctl restart systemd-logind.service"
|
|
ssh artemis "echo \"artemis checked in\""
|
|
|
|
ssh cupid1 "echo \"cupid1 checked in\""
|
|
ssh cupid2 "echo \"cupid2 checked in\""
|
|
ssh cupid3 "echo \"cupid3 checked in\""
|
|
ssh cupid4 "echo \"cupid4 checked in\""
|
|
|
|
|
|
parallel -a infra/groups/all ./scripts/setup/finish_preseeded_ubuntu.sh -n {}
|
|
|
|
./scripts/setup/kube_leader.sh -n ares
|
|
|
|
echo "fix infra/scripts/setup/kube_worker.sh and then run the following command:"
|
|
echo "scripts/setup/1-finish-config.sh -t sha:alphabettispaghetti1234567890"
|