Compare commits
2 Commits
6de9876adc
...
32e1611845
Author | SHA1 | Date | |
---|---|---|---|
|
32e1611845 | ||
|
edb7cbce8d |
@ -35,17 +35,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
|
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
|
||||||
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
|
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
|
||||||
- name: Add known hosts
|
# - name: Add known hosts
|
||||||
run: |
|
# run: |
|
||||||
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
|
# mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
|
||||||
for host in $(cat /tmp/hostlist); do
|
# for host in $(cat /tmp/hostlist); do
|
||||||
ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
|
# ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
|
||||||
done
|
# done
|
||||||
- name: Test SSH connections
|
# - name: Test SSH connections
|
||||||
run: |
|
# run: |
|
||||||
for host in $(cat /tmp/hostlist); do
|
# for host in $(cat /tmp/hostlist); do
|
||||||
ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME'
|
# ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME'
|
||||||
done
|
# done
|
||||||
- name: Run deploy-rs from flake
|
- name: Run deploy-rs from flake
|
||||||
run: |
|
run: |
|
||||||
nix run github:serokell/deploy-rs#defaultPackage.x86_64-linux -- --ssh-opts '-i /tmp/key' --dry-activate
|
nix run github:serokell/deploy-rs#defaultPackage.x86_64-linux -- --ssh-opts '-i /tmp/key' --dry-activate
|
@ -33,7 +33,7 @@
|
|||||||
clusterInit = (hostConf.name == "bard");
|
clusterInit = (hostConf.name == "bard");
|
||||||
serverAddr = (if hostConf.name == "bard" then "" else "https://192.168.1.31:6443");
|
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
|
# We are going to manage k8s resources separately from the infrastructure config
|
||||||
manifests = { };
|
manifests = { };
|
||||||
};
|
};
|
||||||
services.openiscsi = {
|
services.openiscsi = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user