Skip to content

Commit

Permalink
added group_vars.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-savina committed Jul 2, 2024
1 parent 44da227 commit fe5cfa9
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 11 deletions.
6 changes: 6 additions & 0 deletions tests/integration/targets/group_vars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# vcenter specific vars
# please edit according to your vcenter configs
vcenter_cluster_name: "Eco-Cluster"
vcenter_datacenter: "Eco-Datacenter"
vcenter_port: 443
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
vcenter_port: 443
appliance_hostname: "{{ vcenter_hostname }}"
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Import common vars
ansible.builtin.include_vars:
file: ../group_vars.yml
when: not run_on_simulator

- name: Gather appliance info
vmware.vmware.appliance_info:
validate_certs: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
vcenter_port: 443
run_on_simulator: false

vm: "{{ tiny_prefix }}-vm"
vm_cluster: "Eco-Cluster"
vm_datacenter: "Eco-Datacenter"
vm_folder: "/Eco-Datacenter/vm/e2e-qe"
vm_cluster: "{{ vcenter_cluster_name }}"
vm_datacenter: "{{ vcenter_datacenter }}"
vm_folder: "/{{ vcenter_datacenter }}/vm/e2e-qe"
vm_guest_id: "rhel8_64Guest"
vm_disk:
- size_gb: 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
- block:
- name: Import common vars
ansible.builtin.include_vars:
file: ../group_vars.yml
when: not run_on_simulator

- name: "Test setup: Create VM guest {{ vm }}"
community.vmware.vmware_guest:
validate_certs: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vcenter_port: 443
run_on_simulator: false

guests_length: 1
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/targets/vmware_guest_info/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
# note: this test will fail due to the below known bug:
# https://issues.redhat.com/browse/ACA-1650
- name: Import common vars
ansible.builtin.include_vars:
file: ../group_vars.yml
when: not run_on_simulator

- name: Gather guest info
vmware.vmware.guest_info:
validate_certs: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vcenter_port: 443
run_on_simulator: false
licenses_length: 5
5 changes: 5 additions & 0 deletions tests/integration/targets/vmware_license_info/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Import common vars
ansible.builtin.include_vars:
file: ../group_vars.yml
when: not run_on_simulator

- name: Gather license info
vmware.vmware.license_info:
validate_certs: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
vcenter_port: 443
run_on_simulator: false

test_folder: "{{ tiny_prefix }}-folder"

vm_name: "{{ tiny_prefix }}-vm"
vm_cluster: "Eco-Cluster"
vm_datacenter: "Eco-Datacenter"
vm_folder: "/Eco-Datacenter/vm/{{ test_folder }}"
vm_cluster: "{{ vcenter_cluster_name }}"
vm_datacenter: "{{ vcenter_datacenter }}"
vm_folder: "/{{ vcenter_datacenter }}/vm/{{ test_folder }}"
vm_guest_id: "rhel8_64Guest"
vm_disk:
- size_gb: 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
- block:
- name: Import common vars
ansible.builtin.include_vars:
file: ../group_vars.yml
when: not run_on_simulator

- name: "Test setup: Create VM folder {{ test_folder }}"
community.vmware.vcenter_folder:
validate_certs: false
Expand Down

0 comments on commit fe5cfa9

Please sign in to comment.