plans/recovery-plan-catalog.json
|
{
"_comment": "Drives the Recovery Parameters pane's three combo boxes (Recovery Type / Recovery Plan / Data Source) in VCFRecoveryCoordinatorUI.xaml/.ps1. Edit this file to add a new recovery plan, relabel one, change which data sources it permits, or repoint it at a different plan/variables JSON file -- no PowerShell/XAML changes needed for any of that. A brand-new plan must still reuse one of the existing 'target' values below (each is tied to a specific piece of already-built UI plumbing); adding a genuinely new kind of target is a code change, not a JSON one.", "recoveryTypes": [ { "id": "IBR", "label": "Instance Backup & Restore (IBR)" }, { "id": "FDR", "label": "Fleet Disaster Recovery (FDR)" } ], "dataSources": [ { "id": "ExtractBackup", "label": "SDDC Manager Backup File" }, { "id": "LoadExtractedData", "label": "Existing Extracted SDDC Data File" } ], "_targetComment": "target is one of: managementDomain | workloadDomain | additionalCluster | fleetComponent | recoverFleet -- see Sync-RecoveryPlanSelection in the .ps1 for what each one does. Plans may reuse a target when they use the same existing UI plumbing; the selected catalog entry determines the plan and variables files. Optional beta (true) marks a plan as beta: it is only listed in the Recovery Plan combo while the UI is in Engineering mode, and carries a BETA pill (same behaviour as beta cluster types). Optional engineeringOnlyClusterTypes (additionalCluster plan only) lists raw primaryDatastoreType values (e.g. VSAN_MAX = Storage Cluster, VSAN_Remote = Compute Cluster) whose clusters need engineering mode to be selected.", "_extraToggleComment": "extraToggleDefinitions defines every optional plan-specific toggle once (id + label), the same way recoveryTypes/dataSources are defined once above. A definition may also carry an optional 'condition' array (same typed forms as a plan step's condition, e.g. a dataPath) -- the toggle is only shown while every entry passes, and a hidden toggle never counts as on. A plan opts in to a toggle by listing its id + defaultChecked under its own extraToggles array; the toggle's id doubles as the variable name injected into step-condition evaluation and is excluded from that plan's persisted answers file.", "extraToggleDefinitions": [ { "id": "userProvidedOpsRestoreScript", "label": "User Provided VCF Operations Restore Script" }, { "id": "userProvidedDnsScript", "label": "User Provided DNS Entry Modification Script" }, { "id": "userProvidedVsanWitnessScript", "label": "User Provided vSAN Witness Deployment Script", "condition": [ { "type": "dataPath", "path": "selectedCluster.isStretched", "operator": "eq", "value": "t" } ] } ], "_extraRadioGroupComment": "extraRadioGroupDefinitions defines every optional plan-specific group of mutually exclusive radio buttons once. Each option has an id, a label and a 'variables' map of pseudo-variable name -> 'true'/'false' string that is injected into step-condition evaluation while that option is selected (never written to the answers file). Each group also has a 'label' (frame header) and optional 'tooltip'. A plan opts in by listing the group id + defaultOption under its own extraRadioGroups array.", "extraRadioGroupDefinitions": [ { "id": "offlineDepotMode", "label": "Binary Sourcing", "tooltip": "Where recovery binaries come from: the authorized offline depot plus the original VCF Installer, or an unauthorized offline depot with manual binary staging.", "options": [ { "id": "unauthorized", "label": "Unauthorized Offline Depot", "variables": { "unauthorizedDepot": "true" } }, { "id": "authorized", "label": "Authorized Offline Depot & Original VCF Installer", "variables": { "unauthorizedDepot": "false" } } ] } ], "recoveryPlans": [ { "id": "ManagementDomain", "label": "Management Domain Recovery", "recoveryType": "IBR", "target": "managementDomain", "default": true, "planFolder": "ibr", "planFile": "management-domain-recovery-plan.json", "extraToggles": [ { "id": "userProvidedVsanWitnessScript", "defaultChecked": false } ], "variablesFile": "management-domain-recovery-variables.json", "dataSources": [ "ExtractBackup", "LoadExtractedData" ], "defaultDataSource": "ExtractBackup", "selectionList": "domains", "domainFilter": "MANAGEMENT", "tabHeaderLabel": "Management Domain" }, { "id": "FleetComponent", "label": "Fleet Component Recovery", "recoveryType": "IBR", "target": "fleetComponent", "planFolder": "ibr", "planFile": "fleet-component-recovery-plan.json", "variablesFile": "fleet-component-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "none", "extraToggles": [ { "id": "userProvidedOpsRestoreScript", "defaultChecked": false } ], "extraRadioGroups": [ { "id": "offlineDepotMode", "defaultOption": "unauthorized" } ] }, { "id": "WorkloadDomain", "label": "Workload Domain Recovery", "recoveryType": "IBR", "target": "workloadDomain", "planFolder": "ibr", "planFile": "workload-domain-recovery-plan.json", "extraToggles": [ { "id": "userProvidedVsanWitnessScript", "defaultChecked": false } ], "variablesFile": "workload-domain-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "domains", "domainFilter": "NOT_MANAGEMENT", "tabHeaderLabel": "Workload Domains" }, { "id": "AdditionalCluster", "label": "Additional Cluster Recovery", "recoveryType": "IBR", "target": "additionalCluster", "planFolder": "ibr", "planFile": "additional-cluster-recovery-plan.json", "extraToggles": [ { "id": "userProvidedVsanWitnessScript", "defaultChecked": false } ], "variablesFile": "additional-cluster-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "clusters", "engineeringOnlyClusterTypes": [ "VSAN_MAX", "VSAN_Remote" ] }, { "id": "FailoverFleet", "label": "Failover Fleet Components", "recoveryType": "FDR", "target": "recoverFleet", "default": true, "planFolder": "fdr", "planFile": "fdr-failover-plan.json", "extraToggles": [ { "id": "userProvidedDnsScript", "defaultChecked": false } ], "variablesFile": "fdr-failover-variables.json", "dataSources": [], "selectionList": "none" }, { "id": "FailbackFleet", "label": "Failback Fleet Components", "beta": true, "recoveryType": "FDR", "target": "recoverFleet", "default": false, "planFolder": "fdr", "planFile": "fdr-failback-plan.json", "extraToggles": [ { "id": "userProvidedDnsScript", "defaultChecked": false } ], "variablesFile": "fdr-failback-variables.json", "dataSources": [], "selectionList": "none" }, { "id": "FdrNsxRecovery", "label": "Recover NSX Manager in alternate location", "beta": true, "recoveryType": "FDR", "target": "workloadDomain", "planFolder": "fdr", "planFile": "fdr-nsx-recovery-plan.json", "variablesFile": "fdr-nsx-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "domains", "domainFilter": "ALL", "tabHeaderLabel": "Domains" }, { "id": "FdrVcenterRecovery", "label": "Recover vCenter in alternate location", "beta": true, "recoveryType": "FDR", "target": "workloadDomain", "planFolder": "fdr", "planFile": "fdr-vcenter-recovery-plan.json", "variablesFile": "fdr-vcenter-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "domains", "domainFilter": "ALL", "tabHeaderLabel": "Domains" }, { "id": "FdrSddcRecovery", "label": "Recover SDDC Manager in alternate location", "beta": true, "recoveryType": "FDR", "target": "fleetComponent", "planFolder": "fdr", "planFile": "fdr-sddc-recovery-plan.json", "variablesFile": "fdr-sddc-recovery-variables.json", "dataSources": [ "LoadExtractedData" ], "defaultDataSource": "LoadExtractedData", "selectionList": "none" } ] } |