community.vmware icon indicating copy to clipboard operation
community.vmware copied to clipboard

Storage DRS enhancements - module request

Open julie-blake-verizon opened this issue 5 years ago • 4 comments

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 avatar Nov 10 '20 21:11 julie-blake-verizon

@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.

Akasurde avatar Nov 11 '20 05:11 Akasurde

+1 I came here to request the same thing as I'm just realizing that there isn't a Storage DRS module currently.

MallocArray avatar Nov 20 '20 20:11 MallocArray

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?

liamwh avatar Mar 24 '22 10:03 liamwh

Bump, please look into this!

remkolodder avatar Mar 24 '22 10:03 remkolodder