feat: use a host attribute to make the config less verbose/complex
This commit is contained in:
parent
e156b4ecaf
commit
54b43c9962
14 changed files with 81 additions and 102 deletions
|
@ -17,6 +17,10 @@ Notes:
|
|||
name = "marvin";
|
||||
ip_pub = "193.1.99.81";
|
||||
hostname = "${name}.skynet.ie";
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
|
||||
groups = [
|
||||
"skynet-admins-linux"
|
||||
|
@ -64,10 +68,7 @@ in {
|
|||
];
|
||||
|
||||
services.skynet.backup = {
|
||||
host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
host = host;
|
||||
};
|
||||
|
||||
# Put test services below this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue