Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Force randomly-generated node names in VM
Browse files Browse the repository at this point in the history
They all have the same hostname, so two instances can't join the same
cluster if that's used.
  • Loading branch information
barrucadu committed Mar 22, 2024
1 parent 4d6caf0 commit 8c77552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
users.users.root.password = "root";
thingDoer.nodeName = null; # force randomly-generated names

# qemu options
virtualisation.diskImage = null;
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ with lib;
{
options.thingDoer = {
nodeName = mkOption {
type = types.str;
type = types.nullOr types.str;
default = config.networking.hostName;
};

Expand Down

0 comments on commit 8c77552

Please sign in to comment.