summaryrefslogtreecommitdiff
path: root/inventory/host_vars/sk-torrent.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-10-09 22:36:54 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-10-09 22:36:54 +0200
commit8117d3b25602d7ab37e54f06a8fea1eff0c70157 (patch)
treef86f56e4cfbadc8d04556f7e3c642d38c9f2b918 /inventory/host_vars/sk-torrent.yml
parentfix typo (diff)
added host sk-torrent
Diffstat (limited to 'inventory/host_vars/sk-torrent.yml')
-rw-r--r--inventory/host_vars/sk-torrent.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/inventory/host_vars/sk-torrent.yml b/inventory/host_vars/sk-torrent.yml
new file mode 100644
index 00000000..496f5685
--- /dev/null
+++ b/inventory/host_vars/sk-torrent.yml
@@ -0,0 +1,36 @@
+---
+vm_host: sk-2019vm
+
+install:
+ host: "{{ vm_host }}"
+ mem: 4096
+ numcpu: 4
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ pool: storage
+ name: "{{ inventory_hostname }}"
+ size: 10g
+ sdb:
+ type: zfs
+ pool: storage
+ name: "{{ inventory_hostname }}-data"
+ size: 150g
+ interfaces:
+ - bridge: br-public
+ name: primary0
+ autostart: False
+
+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.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] }}"