summaryrefslogtreecommitdiff
path: root/inventory/host_vars/emc-master.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/emc-master.yml')
-rw-r--r--inventory/host_vars/emc-master.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/inventory/host_vars/emc-master.yml b/inventory/host_vars/emc-master.yml
new file mode 100644
index 00000000..2a2de27f
--- /dev/null
+++ b/inventory/host_vars/emc-master.yml
@@ -0,0 +1,41 @@
+---
+vm_host: sk2013
+
+install:
+ host: "{{ vm_host }}"
+ mem: 1024
+ numcpu: 2
+ disks:
+ primary: vda
+ virtio:
+ vda:
+ vg: storage
+ lv: "{{ inventory_hostname }}"
+ size: 42g
+ interfaces:
+ - bridge: "{{ hostvars[vm_host].vm_host.network.interface }}"
+ name: primary0
+ autostart: True
+
+network:
+ nameservers: "{{ hostvars[vm_host].vm_host.network.nameservers }}"
+ domain: spreadspace.org
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary:
+ interface: primary0
+ ip: "{{ (hostvars[vm_host].vm_host.network.ip+'/'+hostvars[vm_host].vm_host.network.mask) | ipaddr(hostvars[vm_host].vm_host.network.indices[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[vm_host].vm_host.network.mask }}"
+ gateway: "{{ hostvars[vm_host].vm_host.network.gateway | default(hostvars[vm_host].vm_host.network.ip) }}"
+
+docker_lvm:
+ vg: "{{ inventory_hostname }}"
+ lv: docker
+ size: 10G
+ fs: ext4
+
+kubelet_lvm:
+ vg: "{{ inventory_hostname }}"
+ lv: kubelet
+ size: 10G
+ fs: ext4