community.vmware
community.vmware copied to clipboard
Storage DRS enhancements - module request
SUMMARY
We can define a very basic Datastore cluster using community.vmware.vmware_datastore_cluster, but we need some way to set the full Datastore Cluster configuration rules. From the vCenter GUI:
- Configuration > VM Overrides
- Configuration > Rules
It would also be good if we could get the full functionality in community.vmware.vmware_datastore_cluster for Service > Storage DRS
- Space balance automation level
- I/O balance automation level
- Rule enforcement automation level
- Policy enforcement automation level
- VM evacuation automation level
- Space threshold
- I/O metrics
- Advanced options
ISSUE TYPE
- Feature Idea
COMPONENT NAME
community.vmware.vmware_storage_drs_rule, community.vmware.vmware_storage_drs_override
ADDITIONAL INFORMATION
Would mean that we didn't get a very basic configuration in ansible, and then have to do all the detailed configuration outside of ansible.
community.vmware.vmware_storage_drs_rule:
hostname: "{{ vcenter_hostname }}" [STRING]
username: "{{ vcenter_username }}" [STRING]
password: "{{ vcenter_password }}" [STRING]
validate_certs: "{{ vcenter_validate_certs }}" [BOOL]
cluster_name: "{{ cluster_stanza.cluster_name }}" [STRING]
drs_rule_name: "{{ cluster_rule.rule_name }}" [STRING]
drs_rule_type: "{{ cluster_rule.rule_name }}" [SET: VM anti-affinity, VMDK anti-affinty]
vms: "{{ cluster_rule.vms }}" [LIST]
enabled: "{{ cluster_rule.enabled | default('yes') }}" [BOOL]
state: "{{ cluster_rule.state | default('present') }}" [SET: present, absent]
community.vmware.vmware_storage_drs_override:
hostname: "{{ vcenter_hostname }}" [STRING]
username: "{{ vcenter_username }}" [STRING]
password: "{{ vcenter_password }}" [STRING]
validate_certs: "{{ vcenter_validate_certs }}" [BOOL]
cluster_name: "{{ cluster_stanza.cluster_name }}" [STRING]
automation_level: "{{ dscluster.automation_level | default('manual') }}" [SET: Fully Automated, No Automation, Disabled]
keep_vmdks_together: "{{ dscluster.keep_vmdks_together }}" [BOOL]
vms: "{{ cluster_rule.vms }}" [LIST]
state: "{{ cluster_rule.state | default('present') }}" [SET: present, absent]
@julie-blake-verizon Thanks for requesting this feature. I agree with you, just like vmware_cluster will keep vmware_datastore_cluster standalone and add additional functionalities as separate modules. Would you be interested in starting this works? Let us know. Thanks.
+1 I came here to request the same thing as I'm just realizing that there isn't a Storage DRS module currently.
Bump. Also looking for the functionality to set advanced options on an SDRS cluster.
@mariolenz, would it be possible to just get an advanced_options argument on the community.vmware.vmware_datastore_cluster module?
Bump, please look into this!