6bb21c3db0
- In order to keep the integration with `ansible-test`, we prefer to avoid any interaction with the Ansible inventory file. - split up the prepare_vmware_tests/defaults/main.yml in two configuration files: one for vcsim and one for a real environment - remove all the access to hostvars - directly interact with the ESXi to mount/umount the datastore https://github.com/ansible/ansible/pull/56516 - record the virtual machine folder in the environment configuration - vmware_guest_move: Use https://github.com/ansible/ansible/pull/55237
40 lines
794 B
YAML
40 lines
794 B
YAML
---
|
|
dc1: DC0
|
|
ccr1: DC0_C0
|
|
ds1: LocalDS_0
|
|
ds2: LocalDS_1
|
|
f0: F0
|
|
switch1: switch1
|
|
dvswitch1: DVS0
|
|
# The ESXi entries in the inventory
|
|
esxi_hosts:
|
|
- esxi-67-1.lab
|
|
- esxi-67-2.lab
|
|
esxi_user: root
|
|
esxi_password: "!234AaAa56"
|
|
esxi1: "{{ esxi_hosts[0] }}"
|
|
esxi2: "{{ esxi_hosts[1] }}"
|
|
infra:
|
|
datastores:
|
|
LocalDS_0:
|
|
type: nfs
|
|
server: 192.168.123.1
|
|
path: /srv/esx_lab/isos
|
|
ro: true
|
|
LocalDS_1:
|
|
type: nfs
|
|
server: 192.168.123.1
|
|
path: /srv/esx_lab/vms
|
|
ro: false
|
|
virtual_machines:
|
|
- name: DC0_H0_VM0
|
|
folder: '{{ f0 }}'
|
|
- name: DC0_H0_VM1
|
|
folder: '{{ f0 }}'
|
|
virtual_machines_in_cluster:
|
|
- name: DC0_C0_RP0_VM0
|
|
folder: '{{ f0 }}'
|
|
cluster: '{{ ccr1 }}'
|
|
- name: DC0_C0_RP0_VM1
|
|
folder: '{{ f0 }}'
|
|
cluster: '{{ ccr1 }}'
|