wip minor refactor in okd example
Some checks failed
Run Check Script / check (pull_request) Failing after 1m8s

This commit is contained in:
Jean-Gabriel Gill-Couture 2025-09-03 00:39:21 -04:00
parent f1209b3823
commit ceea03d6ce
2 changed files with 15 additions and 9 deletions

View File

@ -1,20 +1,26 @@
mod topology; mod topology;
use crate::topology::{get_inventory, get_topology}; use crate::topology::{get_inventory, get_topology};
use harmony::modules::okd::{installation::OKDInstallationScore, ipxe::OkdIpxeScore}; use harmony::{
modules::okd::{installation::OKDInstallationScore, ipxe::OkdIpxeScore},
score::Score,
topology::HAClusterTopology,
};
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
let inventory = get_inventory(); let inventory = get_inventory();
let topology = get_topology().await; let topology = get_topology().await;
let kickstart_filename = "inventory.kickstart".to_string(); let scores: Vec<Box<dyn Score<HAClusterTopology>>> = vec![
let cluster_pubkey_filename = "cluster_ssh_key.pub".to_string(); Box::new(OkdIpxeScore {
let harmony_inventory_agent = "harmony_inventory_agent".to_string(); kickstart_filename: "inventory.kickstart".to_string(),
harmony_inventory_agent: "cluster_ssh_key.pub".to_string(),
let okd_install = Box::new(OKDInstallationScore {}); cluster_pubkey_filename: "harmony_inventory_agent".to_string(),
}),
harmony_cli::run(inventory, topology, vec![okd_install], None) Box::new(OKDInstallationScore {}),
];
harmony_cli::run(inventory, topology, scores, None)
.await .await
.unwrap(); .unwrap();
} }

View File

@ -306,7 +306,7 @@ When you can dig them, confirm to continue.
)) ))
.prompt() .prompt()
.expect("Prompt error"); .expect("Prompt error");
// TODO reactivate automatic dns config // TODO reactivate automatic dns config when migration from unbound to dnsmasq is done
// OKDDnsScore::new(topology) // OKDDnsScore::new(topology)
// .interpret(inventory, topology) // .interpret(inventory, topology)
// .await?; // .await?;