Make zippy a compute node.
This commit is contained in:
@@ -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
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/global
|
../../common/global
|
||||||
../../common/cattle-node.nix
|
../../common/compute-node.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user