45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ../common.nix ];
|
|
|
|
networking.hostName = "iso-control-plane-01";
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
devices = [ "/dev/vda" ];
|
|
efiSupport = true;
|
|
efiInstallAsRemovable = true;
|
|
};
|
|
|
|
environment.etc."ultracloud-role".text = "control-plane\n";
|
|
environment.etc."ultracloud-role-control-plane".text = "control-plane\n";
|
|
environment.etc."ultracloud-canonical-install-path".text = "iso\n";
|
|
|
|
services.chainfire = {
|
|
enable = true;
|
|
nodeId = "iso-control-plane-01";
|
|
initialPeers = [ "iso-control-plane-01=127.0.0.1:2380" ];
|
|
package = pkgs.chainfire-server;
|
|
};
|
|
|
|
services.nix-agent = {
|
|
enable = true;
|
|
chainfireEndpoint = "http://10.0.2.2:2379";
|
|
clusterId = "baremetal-iso-canonical";
|
|
nodeId = "iso-control-plane-01";
|
|
flakeRoot = "/var/lib/photon-src";
|
|
intervalSecs = 15;
|
|
apply = true;
|
|
healthCheckCommand = [
|
|
"test"
|
|
"-f"
|
|
"/etc/ultracloud-role-control-plane"
|
|
];
|
|
};
|
|
|
|
systemd.services.nix-agent.environment.RUST_LOG = "info";
|
|
}
|