diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-12-20 20:44:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-12-20 20:44:26 +0100 |
commit | 2204d29541b70f7883c9c49232f10cf490b3232e (patch) | |
tree | 120e7c6abc5b9f86b7cff14c0d6b5732e6374fd0 /inventory/host_vars/ch-phoebe.yml | |
parent | upgrade openwrt images (diff) |
add new vmhost phoebe (WIP)
Diffstat (limited to 'inventory/host_vars/ch-phoebe.yml')
-rw-r--r-- | inventory/host_vars/ch-phoebe.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-phoebe.yml b/inventory/host_vars/ch-phoebe.yml new file mode 100644 index 00000000..5280c7d0 --- /dev/null +++ b/inventory/host_vars/ch-phoebe.yml @@ -0,0 +1,54 @@ +--- +install_interface: eno1 + +install: + efi: true + disks: + primary: /dev/disk/by-id/nvme- + system_lvm: + size: 25G + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + primary: &_network_primary_ + name: br-lan + address: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ network_zones.lan.gateway }}" + interfaces: + - *_network_primary_ + vlans: + eno1: "{{ __vmhost_bridge_interface_zones__['eno1'] | map('extract', network_zones) | map(attribute='vlan') | list }}" + eno2: "{{ __vmhost_bridge_interface_zones__['eno2'] | map('extract', network_zones) | map(attribute='vlan') | list }}" + eno3: "{{ __vmhost_bridge_interface_zones__['eno3'] | map('extract', network_zones) | map(attribute='vlan') | list }}" + eno4: "{{ __vmhost_bridge_interface_zones__['eno4'] | map('extract', network_zones) | map(attribute='vlan') | list }}" + + +apt_repo_components: + - main + - contrib + - non-free ## for microcode updates + + +installer_storage: + type: lvm + vg: "{{ host_name }}" + lv: installer + size: 10G + fs: ext4 + + +zfs_arc_size: + min: 2GB + max: 24GB + +zfs_pools: + storage: + mountpoint: /srv/storage + create_vdevs: mirror /dev/mapper/crypto-sata0 /dev/mapper/crypto-sata1 /dev/mapper/crypto-sata2 + +zfs_sanoid_modules: + storage/vm: + use_template: production + recursive: yes + process_children_only: yes |