diff --git a/changelogs/fragments/110-migrate-community-modules.yml b/changelogs/fragments/110-migrate-community-modules.yml new file mode 100644 index 00000000..3d33355d --- /dev/null +++ b/changelogs/fragments/110-migrate-community-modules.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - cluster_settings - Updated community DPM and DRS recommendation modules to the new vmware.vmware versions diff --git a/galaxy.yml b/galaxy.yml index 622c9f53..3f0ba40a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -22,6 +22,6 @@ build_ignore: dependencies: "vmware.vmware_rest": ">=2.3.1" "community.vmware": ">=4.4.0" - "vmware.vmware": ">=1.5.0" + "vmware.vmware": ">=1.6.0" "community.general": ">=9.2.0" "ansible.posix": ">=1.5.4" diff --git a/roles/cluster_settings/tasks/main.yml b/roles/cluster_settings/tasks/main.yml index 25be6a30..6c9a4b78 100644 --- a/roles/cluster_settings/tasks/main.yml +++ b/roles/cluster_settings/tasks/main.yml @@ -15,7 +15,7 @@ fail_msg: Variable must be set when using this role. - name: Configure DPM Settings - community.vmware.vmware_cluster_dpm: + vmware.vmware.cluster_dpm: hostname: "{{ cluster_settings_hostname }}" username: "{{ cluster_settings_username }}" password: "{{ cluster_settings_password }}" @@ -23,11 +23,11 @@ port: "{{ cluster_settings_port | default(omit) }}" proxy_host: "{{ cluster_settings_proxy_host | default(omit) }}" proxy_port: "{{ cluster_settings_proxy_port | default(omit) }}" - datacenter_name: "{{ cluster_settings_datacenter_name }}" - cluster_name: "{{ cluster_settings_cluster_name }}" - enable_dpm: "{{ cluster_settings_dpm_enable | bool }}" - default_dpm_behaviour: "{{ cluster_settings_dpm_default_behavior | default(omit) }}" - host_power_action_rate: "{{ cluster_settings_dpm_host_power_action_rate | default(omit) }}" + datacenter: "{{ cluster_settings_datacenter_name }}" + cluster: "{{ cluster_settings_cluster_name }}" + enable: "{{ cluster_settings_dpm_enable | bool }}" + automation_level: "{{ cluster_settings_dpm_default_behavior | default(omit) }}" + recommendation_priority_threshold: "{{ cluster_settings_dpm_host_power_action_rate | default(omit) }}" when: cluster_settings_dpm_enable is defined - name: Configure DRS Settings @@ -50,7 +50,7 @@ when: cluster_settings_drs_enable is defined - name: Apply DRS Recommendations for Cluster - community.vmware.vmware_cluster_drs_recommendations: + vmware.vmware.cluster_drs_recommendations: hostname: "{{ cluster_settings_hostname }}" username: "{{ cluster_settings_username }}" password: "{{ cluster_settings_password }}" @@ -58,8 +58,8 @@ port: "{{ cluster_settings_port | default(omit) }}" proxy_host: "{{ cluster_settings_proxy_host | default(omit) }}" proxy_port: "{{ cluster_settings_proxy_port | default(omit) }}" - datacenter_name: "{{ cluster_settings_datacenter_name }}" - cluster_name: "{{ cluster_settings_cluster_name }}" + datacenter: "{{ cluster_settings_datacenter_name }}" + cluster: "{{ cluster_settings_cluster_name }}" when: cluster_settings_drs_apply_recommendations - name: Configure Cluster HA Settings diff --git a/tests/integration/requirements.yml b/tests/integration/requirements.yml index b8fa0b35..94918f55 100644 --- a/tests/integration/requirements.yml +++ b/tests/integration/requirements.yml @@ -5,5 +5,5 @@ collections: version: ">=4.4.0" - name: vmware.vmware_rest - name: vmware.vmware - version: ">=1.4.0" + version: ">=1.6.0" - name: containers.podman