mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
ssh config and deployment
This commit is contained in:
parent
dd90dc4fb9
commit
be000686f7
@ -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:
|
||||
|
15
hive.nix
15
hive.nix
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user