Skip to content

Commit

Permalink
migrate community modules to vmware.vmware versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency authored and bardielle committed Oct 27, 2024
1 parent 73e061f commit fa07e72
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/110-migrate-community-modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- cluster_settings - Updated community DPM and DRS recommendation modules to the new vmware.vmware versions
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
18 changes: 9 additions & 9 deletions roles/cluster_settings/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
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 }}"
validate_certs: "{{ cluster_settings_validate_certs | default(omit) }}"
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
Expand All @@ -50,16 +50,16 @@
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 }}"
validate_certs: "{{ cluster_settings_validate_certs | default(omit) }}"
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
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa07e72

Please sign in to comment.