Begin setting up authentication and secrets engine
This commit is contained in:
parent
81551dd791
commit
f3175b9b03
20 changed files with 430 additions and 258 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue