Implement Ansible roles for Rocky Linux Testing Framework
- Added `bootstrap_sparrowdo` role for bootstrapping Sparrowdo on a VM. - Introduced `cleanup_vm` role for cleaning up VMs and disk images. - Created `download_image` role to download and cache QCOW2 images. - Developed `golden_image` role for creating and customizing golden images. - Implemented `provision_vm` role for provisioning VMs as linked clones. - Added `run_test` role for executing tests with Sparrowdo. - Created playbooks for building golden images, running single tests, and running test suites. - Enhanced documentation with usage examples, configuration details, and troubleshooting tips. - Added support for multiple cloud providers (AWS, Azure) in the test execution workflow. Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
This commit is contained in:
18
ansible/roles/provision_vm/defaults/main.yml
Normal file
18
ansible/roles/provision_vm/defaults/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# Default variables for provision_vm role
|
||||
# Most settings come from inventory (group_vars/libvirt.yml)
|
||||
|
||||
# VM name (required, passed from playbook/tasks)
|
||||
vm_name: ""
|
||||
|
||||
# Maximum wait time for IP (seconds)
|
||||
max_wait_ip: 30
|
||||
|
||||
# OS variant for virt-install
|
||||
os_variant: "rocky9-unknown"
|
||||
|
||||
# Use transient VM (doesn't survive reboot)
|
||||
vm_transient: true
|
||||
|
||||
# Return variable name for VM IP
|
||||
vm_ip_var: "provisioned_vm_ip"
|
||||
Reference in New Issue
Block a user