Make zippy a compute node.

This commit is contained in:
2024-07-25 14:04:19 +01:00
parent 7d63e71646
commit 9952890751
4 changed files with 3 additions and 18 deletions

View File

@@ -1,15 +0,0 @@
{ pkgs, ... }:
{
imports = [
./cifs-client.nix
./consul.nix
./glusterfs.nix
./glusterfs-client.nix
./impermanence.nix
./nomad.nix
./sshd.nix
./user-ppetru.nix
./unattended-encryption.nix
./systemd-boot.nix
];
}

View File

@@ -12,7 +12,7 @@ in
client_addr = "0.0.0.0"; client_addr = "0.0.0.0";
datacenter = "alo"; datacenter = "alo";
server = server_enabled; server = server_enabled;
bootstrap_expect = (builtins.length servers + 2) / 2; bootstrap_expect = if server_enabled then (builtins.length servers + 2) / 2 else null;
retry_join = builtins.filter (elem: elem != config.networking.hostName) servers; retry_join = builtins.filter (elem: elem != config.networking.hostName) servers;
telemetry = { telemetry = {
prometheus_retention_time = "24h"; prometheus_retention_time = "24h";

View File

@@ -75,7 +75,7 @@
}; };
}; };
zippy = { zippy = {
hostname = "zippy"; hostname = "192.168.1.2";
profiles.system = { profiles.system = {
user = "root"; user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.zippy; path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.zippy;

View File

@@ -2,7 +2,7 @@
{ {
imports = [ imports = [
../../common/global ../../common/global
../../common/cattle-node.nix ../../common/compute-node.nix
./hardware.nix ./hardware.nix
]; ];