summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-mimas.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-10-29 02:44:23 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-10-29 02:44:23 +0100
commit9f67123d2cefae778df1e40ccc770d5e744281ff (patch)
treeb37687d9bd103919d9677bc0bd4c0d3ec1975397 /inventory/host_vars/ch-mimas.yml
parentpreseed: added support for ancient debian jessie (diff)
move mimas to sk-2019vm
Diffstat (limited to 'inventory/host_vars/ch-mimas.yml')
-rw-r--r--inventory/host_vars/ch-mimas.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-mimas.yml b/inventory/host_vars/ch-mimas.yml
new file mode 100644
index 00000000..e073d7bc
--- /dev/null
+++ b/inventory/host_vars/ch-mimas.yml
@@ -0,0 +1,31 @@
+---
+vm_host: sk-2019vm
+
+install:
+ host: "{{ vm_host }}"
+ mem: 2048
+ numcpu: 4
+ disks:
+ primary: /dev/vda
+ virtio:
+ vda:
+ type: zfs
+ pool: storage
+ name: "{{ inventory_hostname }}"
+ size: 62g
+ interfaces:
+ - bridge: br-public
+ name: eth0
+ autostart: True
+
+network:
+ nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary:
+ interface: eth0
+ ip: "{{ hostvars[vm_host].vm_host.network.prefix | ipaddr(hostvars[vm_host].vm_host.network.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[vm_host].vm_host.network.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[vm_host].vm_host.network.prefix | ipaddr('address') }}"
+ public: "{{ (hostvars[vm_host].vm_host.network.public.prefix | ipaddr(hostvars[vm_host].vm_host.network.public.mappings[inventory_hostname])).split('/')[0] }}"