diff --git a/inventory_sample.ini b/inventory_example.ini similarity index 100% rename from inventory_sample.ini rename to inventory_example.ini diff --git a/inventory_example.yml b/inventory_example.yml new file mode 100644 index 0000000..e262c7e --- /dev/null +++ b/inventory_example.yml @@ -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 \ No newline at end of file diff --git a/inventory_libvirt.yml b/inventory_libvirt.yml new file mode 100644 index 0000000..dff5f10 --- /dev/null +++ b/inventory_libvirt.yml @@ -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 diff --git a/vars_libvirt.yml b/vars_libvirt.yml new file mode 100644 index 0000000..6a9ed33 --- /dev/null +++ b/vars_libvirt.yml @@ -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/" \ No newline at end of file