Begin setting up authentication and secrets engine
Some checks failed
/ dev-shell (push) Successful in 1m9s
/ rust-packages (push) Successful in 4m36s
/ check (push) Failing after 5m57s
/ systems (push) Successful in 27m33s
/ terraform-providers (push) Successful in 12m41s

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-17 01:20:19 +02:00
parent 81551dd791
commit f3175b9b03
Signed by: khs
GPG key ID: C7D890804F01E9F0
20 changed files with 430 additions and 258 deletions

View file

@ -51,7 +51,10 @@ fn configure() -> anyhow::Result<()> {
if ipv4.is_some_and(|v| v) {
cmd.arg("-4");
}
cmd.args(["addr", "add", &address, "dev", &m.name]);
// Apparently the configuration used renames the eth0 device to enp1s0, I should really figure out why this happens, but for now
// this will do.
let dev_name = if m.name == "eth0" { "enp1s0" } else { &m.name };
cmd.args(["addr", "add", &address, "dev", dev_name]);
cmd.try_spawn_to_string()?;
let mut cmd = common::proc::Command::new("ip");
if ipv6.is_some_and(|v| v) {
@ -60,7 +63,7 @@ fn configure() -> anyhow::Result<()> {
if ipv4.is_some_and(|v| v) {
cmd.arg("-4");
}
cmd.args(["route", "add", "default", "via", &gateway, "dev", &m.name]);
cmd.args(["route", "add", "default", "via", &gateway, "dev", dev_name]);
cmd.try_spawn_to_string()?;
}
metadata::InstanceNetworkConfigConfigSubnet::Dhcp {} => continue,