Add inventory example in yaml
This commit is contained in:
parent
5c7e3977b0
commit
4ec5432989
28
inventory_example.yml
Normal file
28
inventory_example.yml
Normal file
@ -0,0 +1,28 @@
|
||||
all:
|
||||
children:
|
||||
promox-kvm:
|
||||
hosts:
|
||||
192.168.122.10:
|
||||
hostname: proxy
|
||||
vm_id: 100
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "2048"
|
||||
vm_ballo: "1024"
|
||||
vm_cpus: "2"
|
||||
vm_size: "5"
|
||||
vm_nif: vmbr1
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
||||
192.168.122.11:
|
||||
hostname: database
|
||||
vm_id: 101
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "6144"
|
||||
vm_ballo: "3072"
|
||||
vm_cpus: "4"
|
||||
vm_size: "40"
|
||||
vm_nif: vmbr1
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
53
inventory_libvirt.yml
Normal file
53
inventory_libvirt.yml
Normal file
@ -0,0 +1,53 @@
|
||||
all:
|
||||
children:
|
||||
local:
|
||||
hosts:
|
||||
192.168.122.10:
|
||||
hostname: proxy
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "2048"
|
||||
vm_ballo: "1024"
|
||||
vm_cpus: "2"
|
||||
vm_size: "5"
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
||||
192.168.122.11:
|
||||
hostname: database
|
||||
os: debian12
|
||||
filesystem: btrfs
|
||||
vm_memory: "6144"
|
||||
vm_ballo: "3072"
|
||||
vm_cpus: "4"
|
||||
vm_size: "40"
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
||||
kube:
|
||||
hosts:
|
||||
192.168.122.201:
|
||||
hostname: kube01
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "4096"
|
||||
vm_cpus: "4"
|
||||
vm_size: "25"
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
||||
192.168.122.202:
|
||||
hostname: kube02
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "4096"
|
||||
vm_cpus: "4"
|
||||
vm_size: "25"
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
||||
192.168.122.203:
|
||||
hostname: kube03
|
||||
os: archlinux
|
||||
filesystem: btrfs
|
||||
vm_memory: "4096"
|
||||
vm_cpus: "4"
|
||||
vm_size: "25"
|
||||
vm_gw: 192.168.122.1
|
||||
vm_dns: 1.1.1.1
|
14
vars_libvirt.yml
Normal file
14
vars_libvirt.yml
Normal file
@ -0,0 +1,14 @@
|
||||
ansible_user: "{{ user_name }}"
|
||||
ansible_password: "{{ user_password }}"
|
||||
ansible_become_password: "{{ user_password }}"
|
||||
ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
||||
|
||||
vm_ip: "{{ inventory_hostname }}/24"
|
||||
hypervisor_list: ["libvirt", "proxmox", "vmware", "none"]
|
||||
filesystem_list: ["btrfs", "ext4", "xfs"]
|
||||
os_list: ["archlinux", "almalinux", "debian11", "debian12", "fedora"]
|
||||
install_type: "virtual"
|
||||
cis: false
|
||||
|
||||
boot_iso: "/home/sandwich/Müll/New System/archlinux-2024.03.01-x86_64.iso"
|
||||
vm_path: "/home/sandwich/Stuff/VMs/"
|
Loading…
Reference in New Issue
Block a user