vcf_cluster_config¶
State module for the vSphere 9 cluster Configuration Profile API.
The state below operates at the cluster level — the profile applies to every host in the cluster (vSphere 9 has no per-host imperative REST for these knobs). Use this to declaratively manage host services, NTP, syslog, firewall, advanced settings, etc.
Example:
Set NTP servers cluster-wide:
vcf_cluster_config.profile_value:
- name: domain-c9
- key: profile.esx.health.ntp_health.servers
- value:
- pool.ntp.org
- time.cloudflare.com
- saltext.vcf.states.vcf_cluster_config.enabled(name, profile=None)[source]¶
Ensure Configuration Profile is enabled on cluster name.
- saltext.vcf.states.vcf_cluster_config.profile_value(name, key, value, profile=None)[source]¶
Ensure a specific Configuration Profile key on cluster name equals value.
key is a dotted JSON-Schema-style path (e.g.
profile.esx.health.ntp_health.servers). Comparison is exact. When a change is needed, the state creates a draft, patches just that key, then applies the draft.