summaryrefslogtreecommitdiff
path: root/inventory/group_vars/chaos-at-home/network.yml
blob: fa34a7a0bcb473e5e7f198b7af0611dab10b5270 (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
103
104
105
106
107
108
109
110
111
112
113
---
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-mc: 10
      ch-telesto: 20
      ch-calypso: 21
      ch-thetys: 22
      ch-dione: 23
      ch-helene: 24
      ch-prometheus: 200
      ch-epimetheus: 201
      ch-gw-lan: 254
      #############
      ## legacy stuff
      ch-prometheus-legacy: 250
    wifi:
      ssid: "chaos at home"
      encryption: "sae-mixed"
      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: "sae-mixed"
      key: "{{ vault_wifi_keys.iot }}"
    offsets:
      ch-wled-test: 1
      ch-mon: 230
      ch-iot: 254

  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-vpn: 10
      ch-k8s-master: 20
      ch-jump: 22
      ch-gw-lan: 28
      ch-iot: 30
      ch-testvm-prometheus: 42
      ch-nic: 53
      __svc_http__: 80
      __svc_imap__: 143
      ch-mon: 230
      ch-router-obsd: 253
      ch-router: 254
      #############
      ## legacy stuff
      ch-auth-legacy: 88


  mgmt:
    vlan: 42
    prefix: 192.168.42.0/24
    offsets:
      ch-equinox-ws: 1
      ch-prometheus: 20 # IPMI
      ch-jump: 22
      ch-dione: 100 # IPMI
      ch-helene: 101 # IPMI
      ch-sw0: 200
      ch-sw1: 201
      ch-ap0: 220
      ch-ap1: 221
      ch-mon: 230
      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') }}"