ops/nixos: tidy up hostnames
This commit is contained in:
parent
1b3cb3f723
commit
bfa7051e2f
5 changed files with 8 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
|||
environment.etc."rundeck.nodes.yaml" = let
|
||||
content = builtins.mapAttrs (name: value: {
|
||||
nodename = name;
|
||||
hostname = value.config.networking.fqdn;
|
||||
hostname = value.config.my.rundeck.hostname;
|
||||
tags = lib.concatStringsSep "," value.config.my.rundeck.tags;
|
||||
username = "deployer";
|
||||
osFamily = "unix";
|
||||
|
|
|
@ -11,6 +11,10 @@ in
|
|||
{
|
||||
imports = [ ../../../third_party/home-manager/nixos ];
|
||||
|
||||
options.my.rundeck.hostname = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.networking.fqdn;
|
||||
};
|
||||
options.my.rundeck.expectedOnline = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
|
|
|
@ -66,6 +66,7 @@ in {
|
|||
|
||||
services.openssh.ports = [ 20022 ];
|
||||
my.deploy.args = "-p 20022";
|
||||
my.rundeck.hostname = "${config.networking.fqdn}:20022";
|
||||
|
||||
networking.firewall = {
|
||||
interfaces.docker0.allowedTCPPorts = [ 25 ];
|
||||
|
|
|
@ -34,7 +34,7 @@ in {
|
|||
# Networking!
|
||||
networking = {
|
||||
hostName = "swann"; # Define your hostname.
|
||||
domain = "house.as205479.net";
|
||||
domain = "int.as205479.net";
|
||||
nameservers = ["8.8.8.8" "8.8.4.4"];
|
||||
useDHCP = false;
|
||||
interfaces = {
|
||||
|
|
|
@ -67,7 +67,7 @@ in {
|
|||
# Networking!
|
||||
networking = {
|
||||
hostName = "totoro"; # Define your hostname.
|
||||
domain = "lukegb.xyz";
|
||||
domain = "int.as205479.net";
|
||||
hostId = "676c08c4";
|
||||
useDHCP = false;
|
||||
interfaces.br-ext.useDHCP = true;
|
||||
|
|
Loading…
Reference in a new issue