Compare commits
3 Commits
479f953944
...
befdfdad36
Author | SHA1 | Date | |
---|---|---|---|
|
befdfdad36 | ||
|
ad62383af9 | ||
|
b980d5c563 |
@ -29,16 +29,20 @@ jobs:
|
|||||||
extraPullNames: nix-community
|
extraPullNames: nix-community
|
||||||
- name: Set up deploy-rs
|
- name: Set up deploy-rs
|
||||||
run: nix build -o deploy github:serokell/deploy-rs#defaultPackage.x86_64-linux
|
run: nix build -o deploy github:serokell/deploy-rs#defaultPackage.x86_64-linux
|
||||||
- name: Set up SSH
|
- name: Set up SSH key
|
||||||
run: |
|
run: |
|
||||||
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
||||||
chmod 600 /tmp/key
|
chmod 600 /tmp/key
|
||||||
|
- name: Derive host IPs
|
||||||
|
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 host keys to known_hosts
|
||||||
|
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: Dry-run deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
./deploy/bin/deploy --ssh-opts '-i /tmp/key'
|
./deploy/bin/deploy --ssh-opts '-i /tmp/key'
|
@ -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