module "inventory_labels" {
  source = "../modules/atlas_inventory_labels"

  nodes                          = var.nodes
  default_ssh_user               = var.default_ssh_user
  default_ssh_port               = var.default_ssh_port
  default_ssh_config_file        = var.default_ssh_config_file
  default_ssh_identity_file      = var.default_ssh_identity_file
  ananke_inventory_fragment_path = var.ananke_inventory_fragment_path
  label_field_manager            = var.node_label_field_manager
  force_node_label_conflicts     = var.force_node_label_conflicts
}

module "flux_day_zero" {
  source = "../modules/flux_day_zero_render"

  enabled          = var.render_flux_day_zero_manifests
  apply_manifests  = var.apply_flux_day_zero_manifests
  kubeconfig_path  = var.kubeconfig_path
  flux_system_path = abspath("${path.module}/../../clusters/atlas/flux-system")
  output_path      = var.flux_day_zero_output_path
}
