# Vault Service High Availability Configuration Fragment

[[elements]]
border_top = true
border_bottom = false
name = "vault_ha_header"
title = "🔄 High Availability Configuration"
type = "section_header"

[[elements]]
default = false
help = "Enable high availability mode with clustering"
name = "vault_ha_enabled"
nickel_path = ["vault_service", "deployment", "ha_enabled"]
prompt = "Enable HA Mode"
type = "confirm"

[[elements]]
condition = "vault_ha_enabled == true"
default = "raft"
help = "HA cluster backend (Raft integrated or external Consul)"
name = "vault_ha_mode"
nickel_path = ["vault_service", "deployment", "ha_mode"]
options = ["raft", "consul"]
prompt = "HA Mode"
required = true
type = "select"
