Compare commits

..

2 Commits

Author SHA1 Message Date
Joey Hafner
32e1611845
#17 Trigger workflow
Some checks failed
Deploy NixOS System Configurations to Silver-Flame Hosts / deploy (push) Failing after 2m31s
2024-10-25 20:30:50 -07:00
Joey Hafner
edb7cbce8d
#17 Disable SSH known_hosts config and test
Can we get away with this?
2024-10-25 20:30:37 -07:00
2 changed files with 12 additions and 12 deletions

View File

@ -35,17 +35,17 @@ jobs:
run: |
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
- name: Add known hosts
run: |
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
for host in $(cat /tmp/hostlist); do
ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
done
- name: Test SSH connections
run: |
for host in $(cat /tmp/hostlist); do
ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME'
done
# - name: Add known hosts
# run: |
# mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
# for host in $(cat /tmp/hostlist); do
# ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
# done
# - name: Test SSH connections
# run: |
# for host in $(cat /tmp/hostlist); do
# ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME'
# done
- name: Run deploy-rs from flake
run: |
nix run github:serokell/deploy-rs#defaultPackage.x86_64-linux -- --ssh-opts '-i /tmp/key' --dry-activate

View File

@ -33,7 +33,7 @@
clusterInit = (hostConf.name == "bard");
serverAddr = (if hostConf.name == "bard" then "" else "https://192.168.1.31:6443");
# We are going to manage k8s resources separately from the infrastructure config
manifests = { };
manifests = { };
};
services.openiscsi = {
enable = false;