summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-k8s-w1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-k8s-w1.yml')
-rw-r--r--inventory/host_vars/ch-k8s-w1.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-k8s-w1.yml b/inventory/host_vars/ch-k8s-w1.yml
new file mode 100644
index 00000000..5cf6d444
--- /dev/null
+++ b/inventory/host_vars/ch-k8s-w1.yml
@@ -0,0 +1,44 @@
+---
+_vm_host_: ch-hroottest
+
+install:
+ vm:
+ host: "{{ _vm_host_ }}"
+ mem: 4096
+ numcpu: 4
+ autostart: True
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 100g
+ properties:
+ refreservation: none
+ interfaces:
+ - bridge: br-public
+ name: primary0
+
+network:
+ nameservers: "{{ hostvars[_vm_host_].vm_host.network.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary:
+ interface: primary0
+ ip: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr(hostvars[_vm_host_].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[_vm_host_].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
+
+docker_lvm:
+ vg: "{{ host_name }}"
+ lv: docker
+ size: 15G
+ fs: ext4
+
+kubelet_lvm:
+ vg: "{{ host_name }}"
+ lv: kubelet
+ size: 15G
+ fs: ext4