ssh config and deployment

This commit is contained in:
Daniel Langbein 2023-09-21 13:40:08 +02:00
parent dd90dc4fb9
commit be000686f7
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 26 additions and 3 deletions

View File

@ -195,8 +195,11 @@ colmena build
Apply to all non-local nodes:
```shell
colmena apply switch
#colmena apply boot
colmena apply --on @server switch
#colmena apply --on @server boot
#colmena apply --on @yodaTab switch
#colmena apply --on @yodaTab boot
```
Apply to local node:

View File

@ -46,6 +46,19 @@ in
# SSH DEPLOYMENT
#
remoteYodaTab = { name, nodes, ... }: {
# Import the per-host configuration file.
imports = [ ./hosts/yodaTab/configuration.nix ];
deployment = {
# SSH deployment.
targetHost = "192.168.178.33";
targetPort = 22;
tags = [ "yodaTab" ];
};
};
yodaYoga = { name, nodes, ... }: {
# Import the per-host configuration file.
imports = [ ./hosts/${name}/configuration.nix ];
@ -55,7 +68,7 @@ in
targetHost = "p1st.de";
targetPort = 2224;
# tags = [ "production" ];
tags = [ "server" ];
};
};
}

View File

@ -8,6 +8,13 @@
enable = true;
userKnownHostsFile = "~/.ssh/known_hosts ${../assets/ssh/known_hosts}";
matchBlocks = {
"yodaTab" = {
hostname = "192.168.178.33";
user = "yoda";
port = 22;
compression = true;
};
"yodaYoga" = {
hostname = "p1st.de";
#hostname = "192.168.178.99";