Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 95bed860 authored by Adam Robinson's avatar Adam Robinson
Browse files

Have to shell out for DataMover.MaxHWTransferSize

parent 5a126db0
......@@ -3,4 +3,5 @@
vmware_user: "{{ lookup('env','VMWARE_USER') }}"
vmware_password: "{{ lookup('env','VMWARE_PASSWORD') }}"
Third_Party_Array_Not_Support_ATS_HB: false
Third_Party_Array_Not_Support_Max_HW_Transfer_Size: false
\ No newline at end of file
Third_Party_Array_Not_Support_Max_HW_Transfer_Size: false
MaxHWTransferSize': '{{4096 if Third_Party_Array_Not_Support_Max_HW_Transfer_Size|bool else 16384}}'
\ No newline at end of file
---
# handlers file for pure_storage_vmware_best_practices
\ No newline at end of file
# handlers file for pure_storage_vmware_best_practices
- name: Stop SSH
vmware_host_service_manager:
hostname: '{{ vcenter_hostname }}'
esxi_hostname: '{{ inventory_hostname }}'
username: '{{ vmware_user }}'
password: '{{ vmware_password }}'
service_name: TSM-SSH
state: stop
delegate_to: localhost
when: not host_service_facts['host_service_facts'][inventory_hostname] | selectattr('key', 'equalto', 'TSM-SSH') | map(attribute='running') | list | first | bool
\ No newline at end of file
---
# tasks file for pure_storage_vmware_best_practices
- name: Start SSH Temporarily
vmware_host_service_manager:
hostname: '{{ vcenter_hostname }}'
esxi_hostname: '{{ inventory_hostname }}'
username: '{{ vmware_user }}'
password: '{{ vmware_password }}'
service_name: TSM-SSH
state: start
delegate_to: localhost
when: not host_service_facts['host_service_facts'][inventory_hostname] | selectattr('key', 'equalto', 'TSM-SSH') | map(attribute='running') | list | first | bool
notify: Stop SSH
- name: DataMover.HardwareAcceleratedInit
vmware_host_config_manager:
hostname: '{{ vcenter_hostname }}'
......@@ -50,15 +62,32 @@
'VMFS3.UseATSForHBOnVMFS5': '{{ 0 if Third_Party_Array_Not_Support_ATS_HB|bool else 1 }}'
delegate_to: localhost
# - name: DataMover.MaxHWTransferSize
# vmware_host_config_manager:
# hostname: '{{ vcenter_hostname }}'
# esxi_hostname: '{{ inventory_hostname }}'
# username: '{{ vmware_user }}'
# password: '{{ vmware_password }}'
# options:
# 'DataMover.MaxHWTransferSize': '{{4096 if Third_Party_Array_Not_Support_Max_HW_Transfer_Size|bool else 16384}}'
# delegate_to: localhost
- name: Get value of DataMover.MaxHWTransferSize
shell: esxcfg-advcfg -g /DataMover/MaxHWTransferSize
vars:
ansible_user: '{{ vmware_user }}@{{ ad_domain|upper }}'
ansible_password: '{{ vmware_password }}'
ansible_connection: paramiko
ansible_python_interpreter: /bin/python
register: MaxHWTransferSizeCMD
changed_when: False
- name: Set CurrentMaxHWTransferSize fact
set_fact:
CurrentMaxHWTransferSize: '{{ MaxHWTransferSizeCMD.stdout | regex_replace(regexp,"\1") }}'
vars:
regexp: 'Value of MaxHWTransferSize is (\d*)'
- debug: var=CurrentMaxHWTransferSize
- name: DataMover.MaxHWTransferSize
shell: esxcfg-advcfg -s /DataMover/MaxHWTransferSize {{ MaxHWTransferSize }}
vars:
ansible_user: '{{ vmware_user }}@{{ ad_domain|upper }}'
ansible_password: '{{ vmware_password }}'
ansible_connection: paramiko
ansible_python_interpreter: /bin/python
when: CurrentMaxHWTransferSize != MaxHWTransferSize
- name: VMFS3.EnableBlockDelete
vmware_host_config_manager:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment