summaryrefslogtreecommitdiff
path: root/inventory/group_vars/chaos-at-home/network.yml
blob: f3d1620d8cae9d6f99b958a6da1f4e9fb10cb256 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
network_zones:
  lan:
    vlan: 28
    prefix: 192.168.28.0/24
    gateway: 192.168.28.254
    dns:
#    - 192.168.28.254
    - 9.9.9.9
    dhcp:
      start: 100
      limit: 199
    offsets:
      ch-equinox-ws: 1
      ch-oulu: 2 ## testing
      ch-oulu-vm1: 3 ## testing
      ch-mc: 10
      ch-prometheus: 200
      ch-prometheus-old: 250
      ch-gw-lan: 254
      #############
      ## legacy stuff
      ch-auth-legacy: 88 ## legacy
      ch-prometheus-legacy: 99 ## legacy
    wifi:
      ssid: "chaos at home"
      encryption: "psk2"
      key: "{{ vault_wifi_keys.lan }}"

  iot:
    vlan: 30
    prefix: 192.168.30.0/24
    dhcp:
      start: 1
      limit: 199
    wifi:
      ssid: "stuff at home"
      encryption: "psk2"
      key: "{{ vault_wifi_keys.iot }}"

  svc:
    vlan: 32
    prefix: 192.168.32.0/24
    gateway: 192.168.32.254
    dns:
#    - 192.168.32.254
    - 9.9.9.9
    offsets:
      ch-apps: 1
      ch-http-proxy: 8
      ch-imap-proxy: 9
      ch-jump: 22
      ch-gw-lan: 28
      ch-nic: 53
      __svc_http__: 80
      __svc_imap__: 143
      ch-router-obsd: 253
      ch-router: 254
      #############
      ## legacy stuff
      ch-stats-legacy: 10
      ch-web-legacy: 80
      ch-auth-legacy: 88
      ch-mail-legacy: 144


  mgmt:
    vlan: 42
    prefix: 192.168.42.0/24
    offsets:
      ch-equinox-ws: 1
      ch-jump: 22
      ch-prometheus: 100 # IPMI
      ch-sw0: 200
      ch-sw1: 201
      ch-ap0: 220
      ch-ap1: 221
      ch-gnocchi: 240
      ch-router: 241

  magenta:
    vlan: 329
    prefix: 62.99.185.128/30
    gateway: 62.99.185.129
    dns:
    - 195.58.160.194
    - 195.58.161.122
    offsets:
      ch-router: 2


network_services:
  http:
    ports:
    - 80
    - 443
    addr: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets.__svc_http__) | ipaddr('address') }}"
  imap:
    ports:
    #- 143
    - 993
    addr: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets.__svc_imap__) | ipaddr('address') }}"