refactor(vars): add system/hypervisor dict inputs
This commit is contained in:
@@ -2,44 +2,59 @@
|
||||
all:
|
||||
vars:
|
||||
install_type: "virtual"
|
||||
hypervisor: "proxmox"
|
||||
hypervisor:
|
||||
type: "proxmox"
|
||||
url: "pve01.example.com"
|
||||
username: "root@pam"
|
||||
password: "CHANGE_ME"
|
||||
node: "pve01"
|
||||
storage: "local-lvm"
|
||||
install_drive: "/dev/sda"
|
||||
boot_iso: "local:iso/archlinux-x86_64.iso"
|
||||
vm_nif: "vmbr0"
|
||||
children:
|
||||
proxmox:
|
||||
hosts:
|
||||
app01.example.com:
|
||||
ansible_host: 10.0.0.10
|
||||
hostname: "app01.example.com"
|
||||
os: "archlinux"
|
||||
filesystem: "btrfs"
|
||||
vm_id: 100
|
||||
vm_cpus: 2
|
||||
vm_memory: 4096
|
||||
vm_size: 40
|
||||
vm_ip: 10.0.0.10
|
||||
vm_nms: 24
|
||||
vm_gw: 10.0.0.1
|
||||
vm_dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
system:
|
||||
name: "app01.example.com"
|
||||
id: 100
|
||||
cpus: 2
|
||||
memory_mb: 4096
|
||||
network: "vmbr0"
|
||||
ip: 10.0.0.10
|
||||
prefix: 24
|
||||
gateway: 10.0.0.1
|
||||
dns_servers:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
disks:
|
||||
- size: 40
|
||||
- size: 80
|
||||
mount: /data
|
||||
fstype: xfs
|
||||
extra_packages:
|
||||
- jq
|
||||
- tmux
|
||||
db01.example.com:
|
||||
ansible_host: 10.0.0.11
|
||||
hostname: "db01.example.com"
|
||||
os: "rhel9"
|
||||
os: "rhel"
|
||||
os_version: "9"
|
||||
filesystem: "xfs"
|
||||
vm_id: 101
|
||||
vm_cpus: 4
|
||||
vm_memory: 8192
|
||||
vm_size: 80
|
||||
vm_ip: 10.0.0.11
|
||||
vm_nms: 24
|
||||
vm_gw: 10.0.0.1
|
||||
vm_dns: "1.1.1.1,1.0.0.1"
|
||||
system:
|
||||
name: "db01.example.com"
|
||||
id: 101
|
||||
cpus: 4
|
||||
memory_mb: 8192
|
||||
network: "vmbr0"
|
||||
ip: 10.0.0.11
|
||||
prefix: 24
|
||||
gateway: 10.0.0.1
|
||||
dns_servers: "1.1.1.1,1.0.0.1"
|
||||
disks:
|
||||
- size: 80
|
||||
rhel_iso: "local:iso/rhel-9.4-x86_64-dvd.iso"
|
||||
luks_enabled: true
|
||||
luks_passphrase: "CHANGE_ME"
|
||||
@@ -47,4 +62,4 @@ all:
|
||||
luks_keyfile_size: 128
|
||||
cis: true
|
||||
selinux: false
|
||||
firewalld_enabled: false
|
||||
firewall_enabled: false
|
||||
|
||||
Reference in New Issue
Block a user