Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate community modules to vmware.vmware versions #110

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading