diff --git a/examples/okd_installation/src/main.rs b/examples/okd_installation/src/main.rs index 21f754d..0d99c15 100644 --- a/examples/okd_installation/src/main.rs +++ b/examples/okd_installation/src/main.rs @@ -1,20 +1,26 @@ mod 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] async fn main() { let inventory = get_inventory(); let topology = get_topology().await; - let kickstart_filename = "inventory.kickstart".to_string(); - let cluster_pubkey_filename = "cluster_ssh_key.pub".to_string(); - let harmony_inventory_agent = "harmony_inventory_agent".to_string(); - - let okd_install = Box::new(OKDInstallationScore {}); - - harmony_cli::run(inventory, topology, vec![okd_install], None) + let scores: Vec>> = vec![ + Box::new(OkdIpxeScore { + kickstart_filename: "inventory.kickstart".to_string(), + harmony_inventory_agent: "cluster_ssh_key.pub".to_string(), + cluster_pubkey_filename: "harmony_inventory_agent".to_string(), + }), + Box::new(OKDInstallationScore {}), + ]; + harmony_cli::run(inventory, topology, scores, None) .await .unwrap(); } diff --git a/harmony/src/modules/okd/installation.rs b/harmony/src/modules/okd/installation.rs index ae851a2..10a923c 100644 --- a/harmony/src/modules/okd/installation.rs +++ b/harmony/src/modules/okd/installation.rs @@ -306,7 +306,7 @@ When you can dig them, confirm to continue. )) .prompt() .expect("Prompt error"); - // TODO reactivate automatic dns config + // TODO reactivate automatic dns config when migration from unbound to dnsmasq is done // OKDDnsScore::new(topology) // .interpret(inventory, topology) // .await?;