-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start using terraform infra with nixos configs
Prepare ghaf-infra so that the infra created with terraform can be used with flake nixos configurations. This includes the following changes: - Remove testhost terraform configuration since it's not used in ghaf-infra. - Use static internal IP addresses in terraform VM configurations. - Configure public cloudapp.azure.com domain names for terraform VMs by using the 'domain_name_label' configuration option. - Use the cloudapp.azure.com domain names in task.py alias hostnames where appropriate. - Use the azarm VM as a remote aarch64 builder for the ghafhydra (in addition to awsarm). In addition, this commit changes some common garbage collection options. Signed-off-by: Henri Rosten <[email protected]>
- Loading branch information
1 parent
ff38a56
commit dc58805
Showing
6 changed files
with
49 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,17 +23,16 @@ | |
localhost x86_64-linux - 8 2 kvm,benchmark,big-parallel,nixos-test - - | ||
''; | ||
}; | ||
build01Machine = pkgs.writeTextFile { | ||
name = "build-build01Machine"; | ||
# TODO: get rid of static IP config: | ||
azarmMachine = pkgs.writeTextFile { | ||
name = "build-azarmMachine"; | ||
text = '' | ||
ssh://nix@10.3.0.5 x86_64-linux ${config.sops.secrets.id_buildfarm.path} 8 2 kvm,benchmark,big-parallel,nixos-test - - | ||
ssh://nix@10.0.2.10 aarch64-linux ${config.sops.secrets.id_buildfarm.path} 8 2 kvm,benchmark,big-parallel,nixos-test - - | ||
''; | ||
}; | ||
awsarmMachine = pkgs.writeTextFile { | ||
name = "build-awsarmMachine"; | ||
text = '' | ||
ssh://[email protected] aarch64-linux ${config.sops.secrets.id_buildfarm.path} 8 2 kvm,benchmark,big-parallel,nixos-test - - | ||
ssh://[email protected] aarch64-linux ${config.sops.secrets.id_buildfarm.path} 16 4 kvm,benchmark,big-parallel,nixos-test - - | ||
''; | ||
}; | ||
createJobsetsScript = pkgs.stdenv.mkDerivation { | ||
|
@@ -49,12 +48,11 @@ | |
in { | ||
programs.ssh.knownHosts = { | ||
# Add builder machines' public ids to ssh known_hosts | ||
build01 = { | ||
# TODO: get rid of static IP config: | ||
hostNames = ["10.3.0.5"]; | ||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID+hx/Ff8U123lI8wMYvmVYn5M3Cv4m+XQxxNYFgJGTo"; | ||
azarm = { | ||
hostNames = ["10.0.2.10"]; | ||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILWojItdbPn0dNbGKfCSJv+duYsb+xzJ6hPWOu+TZ4rm"; | ||
}; | ||
armbuild01 = { | ||
awsarm = { | ||
hostNames = ["awsarm.vedenemo.dev"]; | ||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3f7tAAO3Fc+8BqemsBQc/Yl/NmRfyhzr5SFOSKqrv0"; | ||
}; | ||
|
@@ -73,7 +71,7 @@ in { | |
|
||
buildMachinesFiles = [ | ||
"${localMachine}" | ||
"${build01Machine}" | ||
"${azarmMachine}" | ||
"${awsarmMachine}" | ||
]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters