Skip to content

Commit

Permalink
Merge pull request #20 from entropia/xanderio/init-recipes-host
Browse files Browse the repository at this point in the history
hosts: init recipes.entropia.de
  • Loading branch information
leona-ya authored May 22, 2024
2 parents 458a9ff + 1c74c24 commit 781bf61
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 45 deletions.
11 changes: 11 additions & 0 deletions .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ keys:
- &admin_leona_pgp EB5CEED62922C6050F9FC85BD5B08ADFC75E3605
- &host_oob_gayway_age age14ud0wf5nt2y4vh2kddasnqtdyrhl5xcrmh8py60tw9z5cw8xy9wqqyxsp6
- &host_abrechnung_age age1tcvenngz4qfgyqpxcrf9xgdygs730h83d4ln6xz99slhnaeek5fsh9xgrx
- &host_recipes_age age1zngzchzzy46gyn99awcw2fgn97wuv35afyqrat9442sakgv0ugls606zlr

creation_rules:
- path_regex: secrets/all/[^/]+\.yaml$
Expand All @@ -23,6 +24,7 @@ creation_rules:
- age:
- *admin_xanderio_age
- *host_abrechnung_age
- *host_recipes_age
pgp:
- *admin_evlli_pgp
- *admin_jcgruenhage_pgp
Expand All @@ -41,6 +43,15 @@ creation_rules:
- *admin_transcaffeine_pgp
- *admin_leona_pgp

- path_regex: secrets/hosts/recipes.yaml
key_groups:
- age:
- *admin_xanderio_age
- *host_recipes_age
pgp:
- *admin_jcgruenhage_pgp
- *admin_transcaffeine_pgp

- path_regex: secrets/hosts/oob_gayway.yaml
key_groups:
- age:
Expand Down
33 changes: 33 additions & 0 deletions hosts/recipes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ inputs, config, ... }: {

imports = [
./disko.nix
inputs.disko.nixosModules.disko
../../profiles/entropia-cluster-vm
];

networking.hostName = "recipes";
networking.domain = "entropia.de";
deployment.targetHost = config.networking.fqdn;

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
system.stateVersion = "24.05";

networking.useNetworkd = true;
systemd.network.wait-online.anyInterface = true;
systemd.network.networks."10-eth" = {
enable = true;
name = "en*";
dns = [ "1.1.1.1" ];
address = [
"45.140.180.52/27"
"2a0e:c5c0:0:201::16/64"
];
routes = [
{ routeConfig = { Destination = "0.0.0.0/0"; Gateway = "45.140.180.33"; }; }
{ routeConfig = { Destination = "::/0"; Gateway = "2a0e:c5c0:0:201::1"; }; }
];
};
services.resolved.enable = true;
}
36 changes: 36 additions & 0 deletions hosts/recipes/disko.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/";
};
};
};
};
};
};
};
}
63 changes: 63 additions & 0 deletions secrets/hosts/recipes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
hosts:
recipes:
backup_zweitwohnsitz_password: ENC[AES256_GCM,data:RtFm,iv:8lxqqGywhPvh05Pzkd9HBvc7rX7m+HqRXXBzS5W1L04=,tag:uIu2R4SBglN/gtw+hGDxtg==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1e9yparaev0gxwmherrjpxmfzgqga5eqdw53lrnv05s3ppjgzyceqftnwpx
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBZbWNNV3ZYU0llMmV6Y1l5
azhRcDc2NmxkS2xTbTE2ZUE4WjdOMmR2OEVnCnRWSEp5RFRtZW1ZRDZHdTBJTnBT
UXA4eitFLzUrMWlmdmF6WitxRzMwSjQKLS0tIDQ0cHhZdVB1V1VWU3llM2N1cFNS
WU02TzhLeHhNeHkxS2dDdlJEc0lJNjQK+Sq8LL0bL6CMjHwhhzCTAP/YVJWjUE7Q
uqVAR0ILx8iSQQFsVp3gHCS2rsZ5k89R4Ser/WmuVTDShRbu+TxZrg==
-----END AGE ENCRYPTED FILE-----
- recipient: age1zngzchzzy46gyn99awcw2fgn97wuv35afyqrat9442sakgv0ugls606zlr
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBpT1duWk9kcWpuaUYzdFJE
R2xtak9HTHk3dmlDN0twN2oyZGkrWnh2Wnk4CnF3dGtwT3lCMTVqUFFkd29HWG8v
cVR2NGNRVmlaZTJuSm1nNmtQdXN5NFUKLS0tIG5kS1J2NnRGN1I5M2JCR3dIWUN0
WlhBMGl4bE1XaGE1RSs0THhzTkQrekEKqkZIm6L61KrnCqpzXrfEKD5COx/wyNht
jCFcPxRgDu2Fbat2hbOhJXLTwJx2/SQyNtcCT6map7CcVIckUA2QAA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-05-19T16:34:22Z"
mac: ENC[AES256_GCM,data:m0TqLCAIXZjg6TSo+0ATeK5JO304nHun4UM4a0chZ65WWdg1GV0TyMITtu/x+mfzIVLFiHU/Bbhi8foP2RcVjsxNoo9p8SpfTarDbIplRaJqn11uaS714tEwIuoCmehPZx1fC2zAUcUiNYf1nRz5/4MZ2m2jio01bWOx92TOEGo=,iv:Ozjl2q7ey7Ey4OdWXYlleVXVhXSf7VlJ6Sn3EmLCrK8=,tag:B2k3i73zMZJ+mSPTmjQzCg==,type:str]
pgp:
- created_at: "2024-05-21T16:34:00Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hF4DQJGoFMUUQaUSAQdAz9DQymYUCbLLygdJ7sLWSiN7f4+TRVhtOyuFlr4xVHUw
KBRbMFwN3tJFwgMFZeHkUZhCfOpZZvX/lHA7B+AAfdTrrWASPqZnP1rYmwFR7/QG
0lwBAquHMH/k7MIkYY00Zx/gWJAhcbsanfaPMwjxI4gJO0WfSMrHYJ8Dx84+5JQv
PiqFPo2fyfIOuR6Ss+cpADGwa3O6ohJbKdGVlT8LdJQS8Org2rySlkKS2/fc7A==
=YuPP
-----END PGP MESSAGE-----
fp: 09E8418B46B53B0F825DE4BE018ACF465280F466
- created_at: "2024-05-21T16:34:00Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hQIMAxEs7W/4x4lxAQ//UzgtN1ZXjoyOc3MhvJBaQ93ujJ45i9xb9UE/KyJUTEwt
n/O9PuICg0M81+KiPkeB0SFMxwCPZA+uMIkKpnHZa2BuZQkNoD2DsufMyaZCpMVU
bYC43V741PU68kfjrJMY3y89LFKCeTVxeP7nnK7HF6qGxx//J7aaoBcF/2+mQSKR
/LeZeZMXbqgLQZt5Wm3pDrm5WqQc03QXYEvitR/6fT+bXT6hn7lGGt113RBwTPL2
wnyipbS8+PazU+tz4e7CTSFEBASZgIIGIzMwSkIOr6Vbp3aPyHfDgWVNUeC+GjTz
kUeY8siiefquqIjgc63flkVUDpFLFE5cxnnBD8TGRYjBj7Z659TYJp3wZKbNebVJ
aLqYI57LarUr2WO8UhGTFHQF2HmPb09NbEgaoLrvT59QXyi3JumXHvLSkQe+fTmc
kDmFm2R5sD/7n7eVxg9xw0cesx52j35384w+/oyFneI6sfAuzrFeNqyxp9EeIOvw
GI9MWM3Ya2TWNjuYmy7zjJ7KPBKKyhlMSVZkq0HOq5VoJwylvYJFH6cUtFC4Mfs/
LWbYxORuKAJVClwWEo9N7CQc2ZzA688WVx7cGJbCUXHg0KwobIG8ylsF4ox2Mspw
Y9dbCi193/YLClZ9LSiydxTTBPfLjlKfWxV25IIDUIf4c8k1kJ7Yh6g+fPOB3FbS
XAHMVAD5sJGYOrqpQhut2DeZP2AEhEDmjuZjuhg4EBJCz+5AvlnZQ4k5lKgl2Qic
6zZtFrcWvTHPpRLKlAOxZEI/CEiuSiXu2RplO8air/cvUkQhYdCkIGJ66Ac6
=CVI6
-----END PGP MESSAGE-----
fp: 5E0A9CB3980657CB9AB94AE6790EAEC8F99AB41F
unencrypted_suffix: _unencrypted
version: 3.8.1
99 changes: 54 additions & 45 deletions secrets/profiles/entropia-cluster-vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,77 +10,86 @@ sops:
- recipient: age1e9yparaev0gxwmherrjpxmfzgqga5eqdw53lrnv05s3ppjgzyceqftnwpx
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA0Z1RoK3NyTXZiNi9ia3pD
NnNjcWJRLzM2WnJEb0Q5N0liL2RJUUIwRmhFClhSOFV5ZjNaU2pIUEo3c0FidFk3
ZDB5eG5wRjRqYkk0cHlSSFFPYm5aSkkKLS0tIGZHbitiR0VXdWNLV3JHR0VNN2l1
d0FSakg3dVBLZk91MTBEZ2dEMHUrSGsKaLP5eVs7+78cCvPlla+ndl8mmasgy45i
F3iIdHhOmQ4bGIV+MWrOfIGA8HcQqHITJr5ZwvO2bZ5D6KEdjGf1tg==
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBJRW5zZEcyVGJhTTJ1Yk5N
QWs4WGRCaUhBMndXOFpVSi9KeVZPZVV0clNnCm4vaTRJZTZwVlU0V0hoTWNLNnUy
YlFzdm5SUzlTVHBPaDFucWlDZmVvaUUKLS0tIFQ3TWlwUHg4YVZGRVN2Qnd1ZmZV
TjZSRHo4bFdTT3c2VVhndkNaM2lqMnMKX0p1BgjnGJ+UXXgUAD//HRZZFNb5g0HM
xmwXilhFPq/N+DLp/e9rQz/u8ThnuxF6s84wlY86OCrHvcOG7xFkCw==
-----END AGE ENCRYPTED FILE-----
- recipient: age1tcvenngz4qfgyqpxcrf9xgdygs730h83d4ln6xz99slhnaeek5fsh9xgrx
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAwYW51S0NUeWdQZ3hhVVh5
V2h1UzQrMlNYMkRFQi9LZFd6YjQ2NmgyUlFJCnpQWVEzWDczV2RhdDRPVWRhOHg0
V0UyUEQ3bWVkdEZjVGduUTR3UXp4ajgKLS0tIDJXWmt2VE5Rc1hQNmQrR3B3VEdG
VG9JTTQ1RUVlLy81dTk4aGtBNk1CWHMKmSdGe2S9UdpIx1Th6ejpl1a2Qj9IBaI0
ufDnd35HpZbWDul26tZ53ayXbKN0uiWP7VqBCc01eZqt7P0M8+mEEg==
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBtakYxaDZ2Z0czOUV6YVNT
QThSQ05zbklVMWhicUVxWS9VR1JEdys2UVJFClJJaUswdWlWN1BnUGtLQXNPODR3
YUw4eVAxVWpJN3Y2Y1RMZzRMbVdSZmcKLS0tIFlwNWswWGVTd3RGd0NHQmVIVVZO
UFg2Tk1DR0xxelpndGNvNjlKMUcxTE0KlXAzbirip2u9VAWfIEgV29pivytgwaL6
YJ+E1uDVa/0IUSheHTLmrbhjucGESjx/WPO6vT68dxv0nbP+z/MJdA==
-----END AGE ENCRYPTED FILE-----
- recipient: age1zngzchzzy46gyn99awcw2fgn97wuv35afyqrat9442sakgv0ugls606zlr
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBOVEhwMmhETjNnYzNzTC9H
R2lTTi9OMjhkbFBtR0pRZFU3dnErK29reXhZCld0dFV4NGVHTGltNHd6YWcrVmtt
QzMxRFd3c3hyNWZCbDVqN0o3cDdSdncKLS0tIFczbWpVVjhPcjRucFRwODYyRWRu
d3RiVTBWdDJFSVE3RmNVR3VSbnVaR1kK5ekLadCYFy4UVZ2FH8EIlzN/PBlfD3uE
vDNU9pk+IILJLPlI9OIZ2EbSbS92W3KD65WlnBzIYE9TgRLU+iseDw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-04-22T18:21:22Z"
mac: ENC[AES256_GCM,data:SIodjhGvwa4yJ4FTi6KXKb2/bo3pkMSLcj+jK3skmNu/zUu5foV7V+dB9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created_at: "2024-04-22T11:36:31Z"
- created_at: "2024-05-21T16:41:59Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hF4DQJGoFMUUQaUSAQdAqRUX+a2EDz2iMKxtMKua7DqUcvpSlHZHCbHg3P5QDHQw
hibQ60l053B6ollMbu1o3wfQ8oEB03bpbmiGdHxUUPU0WUQ6szBQK4fu7Hxkabds
0l4BUxnh62v/YBq57D9JAhXSrNsSW3DpspgLj55ng2hbrIvAoE3bo19HUJSUQfxB
oxbfQMAGBlgIZX1q4a6HjL3VM0vX3YObG9Rr/u+m8Ndi4TjqcyzO3DL1+mfxNr4T
=/GQc
hF4DQJGoFMUUQaUSAQdAmVsQMllBHuru/AQYs7ceKijDYtmA/fOqpY6SQh408SAw
6YAl1WsUFJ0jtF8tzG0AGr3M7DjPKY9Kt/VqlEyswsjocSbU2OAg5DuHZqOdxoUA
0l4BypnnzvH/Zl+G8KlQLzTfmeWea5OFbsCfneCc+Ea74bQUp9vOlynYQBEFU59U
9kVJvonfjvdSq3/JQl4DUEqNjFGliFY5H+ZWd8IXwe8JcvIueNXEw2AwSCPBDNO4
=2Cdm
-----END PGP MESSAGE-----
fp: 09E8418B46B53B0F825DE4BE018ACF465280F466
- created_at: "2024-04-22T11:36:31Z"
- created_at: "2024-05-21T16:41:59Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hQIMAxEs7W/4x4lxAQ/+IL8n5LvLTz6MFMEbc6vt+hwnm1szB8Yk0TMcGnpj7ohK
MHeA1GZcd3V7rfL7dBi4NrTs8KSJFkGnz2wNyShUhulXNm2pz5mB1UjCd1T63//U
YvYS3nCCaYk1whtZnElRwNzaLAYUo29ebr8ofDckoV4DU+iYqby0Uo++3Yj/BFu6
Ck2Ghfshx4mnTe1cz8jAlJxh6cvvRxz0ZI8/bnEV+yEjoh6QWYFNSc9FmVGEDLg6
1dKycYMoAv2Yq4QAsGHE9hPF0RAch1jDLygbZ0eS/ohZJRDDW+tckitG1E4kzNg7
8a3tiVaxhnw9s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1iDKTiRB0Kp2IwZ+KyaZ8B7wKD1VgZWq6e
vB06UN4jIsuUm4NmzWTTfZA13xWXDF5+5En1osmXj3lCbMsz1OIC0cDWmuCIc0Ub
5604hi/41ApJEuB0JKE4DaiCfxbQYLd21Y+B0K7emtOk70pG+FoKhUmr1q/HD1fS
XgFGB/CVKQOBkVCX+39RtSyL5y8cNtlhWZnB+M8sllpy4GZ+PoCQH3NKYw98InsU
OBYT1pRNApFb/m/yablMvzX4QVLHQKkFXpT63ti1su1iyov/nyJdeCBqcoi74/I=
=JtSM
-----END PGP MESSAGE-----
fp: 5E0A9CB3980657CB9AB94AE6790EAEC8F99AB41F
- created_at: "2024-04-22T11:36:31Z"
- created_at: "2024-05-21T16:41:59Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hF4D/2siLyjns28SAQdAJgDWbcORkKqGs39Gemp/G0YbQ3LvWvpBSVwTrSAot2Qw
M7FbJya7OyKMMuaqKTdByOBoH1StYKbdpucU7CHyNIcnTGx2SnGRrPzp6aNuyCJ6
0l4BGvL57Y4bRCIS7rvQln312b2LFKzI44DdJiWgepe7IkZYopMdHNWdYbdFI9qn
7qxNa2eNu5Q4CrHXzGP+8g40OLFXUQXL1aJm5u/8Jy3K3YDrWpqttODkU48BbBlz
=TWdU
hF4D/2siLyjns28SAQdAxYP6WpR5AJH0CnJZpqShsbaU7e/z19kOk7Ca8sos3zUw
QcUqTV0sIKFedqKGQeQRWRA17tx5SlTldPF0eV10bTLsUIwG8iTXzHcmVFBBzxJH
0l4BzZYtJHtxgul7deD9iIo7X3Y4jgGHR+jpRVEsqiT6YVQwt/3/nQBNJ+zgd/dQ
QML7B3y7RyUsb1AwnrBZOXMI6mlqJbjyCOFpLyVDzhBwPEuYZuveqK6dNXzmZLq+
=rQ08
-----END PGP MESSAGE-----
fp: EB5CEED62922C6050F9FC85BD5B08ADFC75E3605
unencrypted_suffix: _unencrypted
Expand Down

0 comments on commit 781bf61

Please sign in to comment.