diff options
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/group_vars/all/main.yml | 21 | ||||
-rw-r--r-- | inventory/group_vars/elevate/main.yml | 2 | ||||
-rw-r--r-- | inventory/group_vars/hetzner/main.yml | 6 | ||||
-rw-r--r-- | inventory/group_vars/k8s-emc/main.yml | 39 | ||||
-rw-r--r-- | inventory/group_vars/kvmhosts/main.yml | 3 | ||||
-rw-r--r-- | inventory/group_vars/spreadspace/main.yml | 6 | ||||
-rw-r--r-- | inventory/host_vars/calypso.yml | 10 | ||||
-rw-r--r-- | inventory/host_vars/dione.yml | 22 | ||||
-rw-r--r-- | inventory/host_vars/emc-master.yml | 41 | ||||
-rw-r--r-- | inventory/host_vars/emc-stats.yml | 52 | ||||
-rw-r--r-- | inventory/host_vars/emc-test.yml | 29 | ||||
-rw-r--r-- | inventory/host_vars/helene.yml | 22 | ||||
-rw-r--r-- | inventory/host_vars/sk2013.yml | 19 | ||||
-rw-r--r-- | inventory/host_vars/sk2016.yml | 20 | ||||
-rw-r--r-- | inventory/host_vars/telesto.yml | 10 | ||||
-rw-r--r-- | inventory/host_vars/thetys.yml | 10 | ||||
-rw-r--r-- | inventory/hosts.ini | 124 |
17 files changed, 436 insertions, 0 deletions
diff --git a/inventory/group_vars/all/main.yml b/inventory/group_vars/all/main.yml new file mode 100644 index 00000000..4bb6c76c --- /dev/null +++ b/inventory/group_vars/all/main.yml @@ -0,0 +1,21 @@ +--- +ssh_keys_root: "{{ ssh_keys.equinox[env_group] }}" + +equinox_user: + name: equinox + # password: "{{ vault_equinox_password }}" + shell: /bin/zsh + + +ssh_keys: + equinox: + chaos-at-home: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDL8afqxWieebpxezBuLj2CIx/iAuTY9ziJt8JCJE0qYh+B2wXe9e+sPaKwz5yyS0X0MoEPHbYuVytxGQfGhdVR57gWWTYq5MBBFEqmu5MexAFKlNxad4TNQQwhs7rnI+lptKJO+rqeG/vaQBgao+61ZVwRR5Zr1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/R2ZTOEwr6+uRdFqn+mWmB0Mr20YavjVretseVs1AkmqaVClEO1juwb/CWI//Nd4uboD9zdZwkHmCjLlOmC+GkGrnLValaqQDh8iR8aKiVbaQVffl3ph1pD3BCn79KJy56YySLTbaI4lFDUHherkTdvgyMVmZJZMROzwuX7i4bi04TZ/GKTfDrw== equinox@elevate.at + spreadspace: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtmysXjBidEwJek6hBgaENiyVOwroFi19xRZZw+cYYqi6asDfF6B/h6gYNkJGWo0rD5ZaLdau1O210O5Xu+TfK1e2bZbxuFIj2fguUkat9wN6IQIO2m2Wcf4k/eiTmtAE3dp0l5ThMqfxxE8dj76mOOrUHCfJUIVoATGs4X5TLcGcXroAcZ+DFFoDzjxjFYNmIuUNtXDwXTpPc63SAYmRvW0ZYZlvH1qZ6irLh+GtE1dZ1Q5lQZvp6xUYcjInbpcd5Ko3KbG/In7sNmUCI7iaTwC4DPDTcHFj99Ll1jruAbdaQqe+ClZv55dbQ+92RDF6fsuQBD8FeRz7nYChvCqNPT1KOvcVsDtbW0iJ1PZ05QdE27w23wJj9OE0JWM09P3AH3ttswHaJ+P4s7mSxxK2m6YZcqop3czLlWWoGna0ynd5eV6l/rtvAQUvBOXjKQ5fPQY5d9cF0Z87NBE54HM9a/IKZ2toU2MuYNUpI/DUoAA9ILS4bJm3AUz8wbaC5EiuIhbM6I/u0NANamaQKRrolGNP4ETaQvhABs+S3/NSSBy4DMjtwax2BxyenF6i89vyHPNY+LZzBOn842yUlEGn6Z11MxiE5fhIfMPUclSYi5bQJDf1fvAyAo59/AX8sPqRK+/OCLIgLwdtW6D4OZGXjqrBJe2j/5uZSJEsl6ROyKw== equinox@spreadspace.org + funkfeuer: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCjqlbFhzWRt2EnUrd7AFgR2iqPbV655OE38184ws+RvO82ImpJsKy80AvLQ3DhplLAN2W9kROBn3bga89pK7Sf78EwYYb5e+McVA0vU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pF3WfHaHPESAlmNCKPbH5X7oBDOI5k96J34vDl1cBLjcVydtwfwbJmbApOMz3IukoUlYusbvLo2bJicHolkNrlS6qcSbaPpKsrjZ5II0Fks/S39q5rE//nVsY5oE35Gm5Pb7gndSuo/l01WOANYmKuYiwUz/XC62fis7fxiCxmLPMG3PIym7E3pe+lTjSOI3SN24cgwArDEvGZhqeyOHN468Yt8mPersXvY/cUMS1XFvLadtnw== equinox@mur.at diff --git a/inventory/group_vars/elevate/main.yml b/inventory/group_vars/elevate/main.yml new file mode 100644 index 00000000..58103d1a --- /dev/null +++ b/inventory/group_vars/elevate/main.yml @@ -0,0 +1,2 @@ +--- +acmetool_account_email: equinox@elevate.at diff --git a/inventory/group_vars/hetzner/main.yml b/inventory/group_vars/hetzner/main.yml new file mode 100644 index 00000000..2e5c8b4a --- /dev/null +++ b/inventory/group_vars/hetzner/main.yml @@ -0,0 +1,6 @@ +--- +debian_mirror: + packages: http://mirror.hetzner.de/debian/packages + security: http://mirror.hetzner.de/debian/security + +ubuntu_mirror: http://mirror.hetzner.de/ubuntu/packages diff --git a/inventory/group_vars/k8s-emc/main.yml b/inventory/group_vars/k8s-emc/main.yml new file mode 100644 index 00000000..6b1344ae --- /dev/null +++ b/inventory/group_vars/k8s-emc/main.yml @@ -0,0 +1,39 @@ +--- +docker_pkg_version: 17.03.2~ce-0~debian-stretch + +kubernetes: + pkg_version: 1.9.6-00 + + dedicated_master: True + api_advertise_ip: 144.76.160.141 + api_extra_sans: + - emc-master.spreadspace.org + + pod_ip_range: 172.18.0.0/16 + pod_ip_range_size: 24 + service_ip_range: 172.18.192.0/18 + ## net_index must be in the range between 1 and 190 -> 189 hosts possible + ## + ## hardcoded hostnames are not nice but if we do this via host_vars + ## the info is spread over multiple files and this makes it more diffcult + ## to find mistakes, so it is nicer to keep it in one place... + net_index: + emc-01: 1 + emc-02: 2 + emc-03: 3 + emc-04: 4 + emc-05: 5 + emc-06: 6 + emc-test: 99 + emc-00: 100 + dione: 101 + helene: 102 + emc-stats: 120 + emc-master: 127 + + direct_net_zones: + encoder: + transfer_net: 172.18.191.0/24 + node_interface: + dione: eno2 + helene: eno2 diff --git a/inventory/group_vars/kvmhosts/main.yml b/inventory/group_vars/kvmhosts/main.yml new file mode 100644 index 00000000..7ae104b1 --- /dev/null +++ b/inventory/group_vars/kvmhosts/main.yml @@ -0,0 +1,3 @@ +--- +preseed_path: /srv/preseed +debian_installer_path: /srv/installer diff --git a/inventory/group_vars/spreadspace/main.yml b/inventory/group_vars/spreadspace/main.yml new file mode 100644 index 00000000..4da60636 --- /dev/null +++ b/inventory/group_vars/spreadspace/main.yml @@ -0,0 +1,6 @@ +--- +acmetool_account_email: equinox@spreadspace.org + +blackmagic_desktopvideo_apt: + username: "streaming" + password: "{{ vault_spreadspace.blackmagic_desktopvideo_apt_password }}" diff --git a/inventory/host_vars/calypso.yml b/inventory/host_vars/calypso.yml new file mode 100644 index 00000000..ff853586 --- /dev/null +++ b/inventory/host_vars/calypso.yml @@ -0,0 +1,10 @@ +--- +base_packages_extra_host: +- exfat-fuse +- exfat-utils +- vlan + +admin_user_host: +- "{{ equinox_user }}" + +sshserver_allowusers_host: "{{ admin_user_host | map(attribute='name') | list }}" diff --git a/inventory/host_vars/dione.yml b/inventory/host_vars/dione.yml new file mode 100644 index 00000000..75b289c2 --- /dev/null +++ b/inventory/host_vars/dione.yml @@ -0,0 +1,22 @@ +--- +base_packages_extra_host: +- exfat-fuse +- exfat-utils +- vlan + +admin_user_host: +- "{{ equinox_user }}" + +sshserver_allowusers_host: "{{ admin_user_host | map(attribute='name') | list }}" + +docker_lvm: + vg: dione + lv: docker + size: 15G + fs: ext4 + +kubelet_lvm: + vg: dione + lv: kubelet + size: 10G + fs: ext4 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 diff --git a/inventory/host_vars/emc-stats.yml b/inventory/host_vars/emc-stats.yml new file mode 100644 index 00000000..0bd53559 --- /dev/null +++ b/inventory/host_vars/emc-stats.yml @@ -0,0 +1,52 @@ +--- +vm_host: sk2016 + +install: + host: "{{ vm_host }}" + mem: 8192 + numcpu: 6 + disks: + primary: vda + virtio: + vda: + vg: storage + lv: "{{ inventory_hostname }}" + size: 42g + vdb: + vg: storage + lv: "{{ inventory_hostname }}-data" + size: 100g + 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: 15G + fs: ext4 + +kubelet_lvm: + vg: "{{ inventory_hostname }}" + lv: kubelet + size: 10G + fs: ext4 + +emc_stats_lvm: + pvs: /dev/vdb + vg: "{{ inventory_hostname }}-data" + lv: stats + size: 50G + fs: ext4 diff --git a/inventory/host_vars/emc-test.yml b/inventory/host_vars/emc-test.yml new file mode 100644 index 00000000..9b556df0 --- /dev/null +++ b/inventory/host_vars/emc-test.yml @@ -0,0 +1,29 @@ +--- +vm_host: sk2016 + +install: + host: "{{ vm_host }}" + mem: 1024 + numcpu: 2 + disks: + primary: vda + virtio: + vda: + vg: storage + lv: "{{ inventory_hostname }}" + size: 10g + 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) }}" diff --git a/inventory/host_vars/helene.yml b/inventory/host_vars/helene.yml new file mode 100644 index 00000000..b40fb069 --- /dev/null +++ b/inventory/host_vars/helene.yml @@ -0,0 +1,22 @@ +--- +base_packages_extra_host: +- exfat-fuse +- exfat-utils +- vlan + +admin_user_host: +- "{{ equinox_user }}" + +sshserver_allowusers_host: "{{ admin_user_host | map(attribute='name') | list }}" + +docker_lvm: + vg: helene + lv: docker + size: 15G + fs: ext4 + +kubelet_lvm: + vg: helene + lv: kubelet + size: 10G + fs: ext4 diff --git a/inventory/host_vars/sk2013.yml b/inventory/host_vars/sk2013.yml new file mode 100644 index 00000000..c1bf2728 --- /dev/null +++ b/inventory/host_vars/sk2013.yml @@ -0,0 +1,19 @@ +--- +sshserver_allowusers_host: +- backuppc +- equinox +- dan + +vm_host: + installer: + net_if: virbr + network: + interface: virbr + ip: 192.168.160.254 + mask: 255.255.255.0 + nameservers: + - 213.133.100.100 + - 213.133.98.98 + - 213.133.99.99 + indices: + emc-master: 141 diff --git a/inventory/host_vars/sk2016.yml b/inventory/host_vars/sk2016.yml new file mode 100644 index 00000000..73e59d75 --- /dev/null +++ b/inventory/host_vars/sk2016.yml @@ -0,0 +1,20 @@ +--- +sshserver_allowusers_host: +- backuppc +- equinox +- dan + +vm_host: + installer: + net_if: virbr + network: + interface: virbr + ip: 192.168.216.254 + mask: 255.255.255.0 + nameservers: + - 213.133.100.100 + - 213.133.98.98 + - 213.133.99.99 + indices: + emc-stats: 200 + emc-test: 201 diff --git a/inventory/host_vars/telesto.yml b/inventory/host_vars/telesto.yml new file mode 100644 index 00000000..ff853586 --- /dev/null +++ b/inventory/host_vars/telesto.yml @@ -0,0 +1,10 @@ +--- +base_packages_extra_host: +- exfat-fuse +- exfat-utils +- vlan + +admin_user_host: +- "{{ equinox_user }}" + +sshserver_allowusers_host: "{{ admin_user_host | map(attribute='name') | list }}" diff --git a/inventory/host_vars/thetys.yml b/inventory/host_vars/thetys.yml new file mode 100644 index 00000000..ff853586 --- /dev/null +++ b/inventory/host_vars/thetys.yml @@ -0,0 +1,10 @@ +--- +base_packages_extra_host: +- exfat-fuse +- exfat-utils +- vlan + +admin_user_host: +- "{{ equinox_user }}" + +sshserver_allowusers_host: "{{ admin_user_host | map(attribute='name') | list }}" diff --git a/inventory/hosts.ini b/inventory/hosts.ini new file mode 100644 index 00000000..0e83ecda --- /dev/null +++ b/inventory/hosts.ini @@ -0,0 +1,124 @@ +[all:vars] +host_name={{ inventory_hostname }} +#ansible_host={{ host_name }}.{{ host_domain }} +ansible_user=root +ansible_port=22000 + + +############################### +# environment: chaos-at-home + +[chaos-at-home:vars] +host_domain=chaos-at-home.org +env_group=chaos-at-home +ansible_host={{ host_name }}.{{ host_domain }} + +[chaos-at-home] +#prometheus +atlas +keyserver + + +############################### +# environment: spreadspace + +[spreadspace:vars] +host_domain=spreadspace.org +env_group=spreadspace +ansible_host={{ host_name }}.{{ host_domain }} + +[spreadspace] +build +calypso +telesto +thetys +dione +helene + + +[emc:vars] +host_domain=spreadspace.org +env_group=spreadspace + +[emc] +emc-stats +emc-master +emc-test + +[emc:children] +emc-xx + +[emc-xx] +#emc-0[0:6] +emc-00 + + +############################### +# environment: dan + +[skillz:vars] +host_domain=skillz.biz +env_group=dan + +[skillz] +sk2013 host_name=2013 +sk2016 host_name=2016 + + +[elevate:vars] +host_domain=elevate.at +env_group=dan + +[elevate] +elemedia host_name=media + + +############################### +# host categories + +[kvmhosts] +#prometheus +atlas +sk2013 +sk2016 + +[hetzner] +sk2013 +sk2016 +emc-stats +emc-master + +[hetzner:children] +emc-xx + + +[scaleway-kernel] +# emc-test + +[scaleway] +emc-test + +[scaleway:children] +scaleway-kernel + + +### kubernetes cluster: emc + +[k8s-emc-encoder] +#dione +#helene + +[k8s-emc-streamer:children] +emc-xx + +[k8s-emc-master] +emc-master + +[k8s-emc-stats] +emc-stats + +[k8s-emc:children] +k8s-emc-master +k8s-emc-encoder +k8s-emc-streamer +k8s-emc-stats |