feat: add a test server for trainees to use
This commit is contained in:
parent
cbb4100b4e
commit
0a028eaf53
5 changed files with 126 additions and 44 deletions
68
machines/marvin.nix
Normal file
68
machines/marvin.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
|
||||
Name: https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android
|
||||
Why: Has terrible pain in all the diodes down its left side
|
||||
Type: VM
|
||||
Hardware: -
|
||||
From: 2023
|
||||
Role: For trainees.
|
||||
Notes:
|
||||
*/
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
...
|
||||
}: let
|
||||
name = "marvin";
|
||||
ip_pub = "193.1.99.81";
|
||||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
];
|
||||
|
||||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = null;
|
||||
|
||||
# not deployed automatically as its a test server
|
||||
tags = [];
|
||||
};
|
||||
|
||||
# allow trainees to deploy
|
||||
nix.settings.trusted-users = [
|
||||
"root"
|
||||
"@skynet-admins-linux"
|
||||
"@skynet-trainees-linux"
|
||||
];
|
||||
|
||||
# allow trainees access
|
||||
services.skynet_ldap_client.groups = [
|
||||
"skynet-admins-linux"
|
||||
"skynet-trainees-linux"
|
||||
];
|
||||
|
||||
skynet_dns.records = [
|
||||
{
|
||||
record = name;
|
||||
r_type = "A";
|
||||
value = ip_pub;
|
||||
server = true;
|
||||
}
|
||||
{
|
||||
record = ip_pub;
|
||||
r_type = "PTR";
|
||||
value = hostname;
|
||||
}
|
||||
];
|
||||
|
||||
services.skynet_backup = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
};
|
||||
|
||||
# Put test services below this
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue