Add dynamic inventory configuration
- Add development environment inventory structure - Configure libvirt/KVM inventory plugin for VM management - Add grokbox hypervisor host configuration - Include existing VM hosts (pihole, mymx, derp) - Set up SSH ProxyJump through grokbox for all VMs
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
---
|
||||
# =============================================================================
|
||||
# Hypervisors Group Variables
|
||||
# =============================================================================
|
||||
# Configuration for KVM/QEMU hypervisor hosts
|
||||
# =============================================================================
|
||||
|
||||
# Virtualization Platform
|
||||
# -----------------------------------------------------------------------------
|
||||
virtualization_type: kvm
|
||||
virtualization_role: host
|
||||
hypervisor_vendor: qemu
|
||||
libvirt_version: "11.3.0"
|
||||
qemu_version: "8.0+"
|
||||
|
||||
# Libvirt Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
libvirt_uri: "qemu:///system"
|
||||
libvirt_socket: "/var/run/libvirt/libvirt-sock"
|
||||
libvirt_daemon_enabled: true
|
||||
libvirt_autostart: true
|
||||
|
||||
# Network Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
libvirt_networks:
|
||||
- name: default
|
||||
bridge: virbr0
|
||||
subnet: "192.168.122.0/24"
|
||||
dhcp_enabled: true
|
||||
dhcp_range_start: "192.168.122.2"
|
||||
dhcp_range_end: "192.168.122.254"
|
||||
autostart: true
|
||||
|
||||
# Storage Pools
|
||||
# -----------------------------------------------------------------------------
|
||||
libvirt_storage_pools:
|
||||
- name: default
|
||||
type: dir
|
||||
path: /var/lib/libvirt/images
|
||||
autostart: true
|
||||
|
||||
# VM Management
|
||||
# -----------------------------------------------------------------------------
|
||||
vm_management_tool: virsh
|
||||
vm_console_access: true
|
||||
vm_serial_console_enabled: true
|
||||
|
||||
# SSH Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
ansible_ssh_extra_args: '-o ForwardAgent=yes'
|
||||
|
||||
# Resource Allocation
|
||||
# -----------------------------------------------------------------------------
|
||||
max_vms: 10
|
||||
cpu_overcommit_ratio: 2
|
||||
memory_overcommit_ratio: 1.5
|
||||
|
||||
# Monitoring
|
||||
# -----------------------------------------------------------------------------
|
||||
monitor_vm_performance: true
|
||||
monitor_host_resources: true
|
||||
alert_on_high_load: true
|
||||
|
||||
# Security
|
||||
# -----------------------------------------------------------------------------
|
||||
selinux_enabled: true
|
||||
selinux_mode: enforcing
|
||||
firewalld_enabled: true
|
||||
firewalld_default_zone: public
|
||||
|
||||
# Required Hypervisor Packages
|
||||
# -----------------------------------------------------------------------------
|
||||
hypervisor_packages:
|
||||
- qemu-kvm
|
||||
- libvirt-daemon
|
||||
- libvirt-daemon-system
|
||||
- libvirt-clients
|
||||
- bridge-utils
|
||||
- virt-manager
|
||||
- virt-viewer
|
||||
- guestfs-tools
|
||||
- libguestfs-tools
|
||||
- python3-libvirt
|
||||
- virtinst
|
||||
Reference in New Issue
Block a user