|
|
@@ -80,7 +80,7 @@ pub struct Config {
|
|
|
/// FLARE deploy settings (private: the publisher acceptance key must never
|
|
|
/// reach the shared recipe repo).
|
|
|
#[serde(default)]
|
|
|
- pub flare: Option<FlareSettings>,
|
|
|
+ pub flare: Option<super::flare_cluster::FlareSettings>,
|
|
|
#[serde(default)]
|
|
|
pub global_mods_dir: Option<std::path::PathBuf>,
|
|
|
/// Drop page cache before starting containers.
|
|
|
@@ -460,42 +460,3 @@ mod tests {
|
|
|
assert!(r.is_err());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-/// `[flare]` in the private config: how the launcher talks to FLARE.
|
|
|
-#[derive(Clone, Debug, Default, serde::Deserialize)]
|
|
|
-pub struct FlareSettings {
|
|
|
- /// Publisher acceptance key (`--dangerously-approve-key`). A FLARE package
|
|
|
- /// is signed; accepting the publisher is a trust decision, so it lives
|
|
|
- /// here, never in the recipe.
|
|
|
- #[serde(default)]
|
|
|
- pub accept_key: Option<String>,
|
|
|
- /// `--dangerously-accept-publisher` value (e.g. `local-development`).
|
|
|
- #[serde(default)]
|
|
|
- pub accept_publisher: Option<String>,
|
|
|
- /// `flare` binary path (default: from PATH).
|
|
|
- #[serde(default)]
|
|
|
- pub binary: Option<String>,
|
|
|
- /// The node that runs the `flare orbit` CLI (our name, e.g. `dgx5.lan`).
|
|
|
- /// Defaults to the first cluster's rank-0 node, which is wrong on a
|
|
|
- /// multi-cluster config (the recipes panel then sees no FLARE groups).
|
|
|
- #[serde(default)]
|
|
|
- pub controller_node: Option<String>,
|
|
|
- /// Per-cluster FLARE settings, keyed by OUR cluster name (`dgx58-switch`,
|
|
|
- /// `prod4`). This is the translation layer: the same launcher config then
|
|
|
- /// serves FLARE on any cluster, with the right orbit cluster name, node
|
|
|
- /// list and local package dir — instead of one flat block that only fits
|
|
|
- /// the machine it was written for.
|
|
|
- #[serde(default)]
|
|
|
- pub clusters: std::collections::HashMap<String, super::flare_cluster::FlareCluster>,
|
|
|
- /// Local package mirror dir on the controller (see `native::flare`).
|
|
|
- #[serde(default)]
|
|
|
- pub local_dir: Option<String>,
|
|
|
- /// `[cluster.<name>]` in `~/.config/flare/orbit.toml` (default `sparks`).
|
|
|
- #[serde(default)]
|
|
|
- pub orbit_cluster: Option<String>,
|
|
|
- /// Orbit node names in cluster rank order (our `dgx5.lan` → their
|
|
|
- /// `spark1`). Empty = the cluster's own node names, which works when the
|
|
|
- /// orbit cluster was paired under the same names.
|
|
|
- #[serde(default)]
|
|
|
- pub orbit_nodes: Vec<String>,
|
|
|
-}
|