mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2024-11-22 06:33:11 +01:00
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
---
|
|
# interface/innernet parent network name
|
|
network_name: "fsfe"
|
|
# 10.200.0.1 to 10.200.255.254
|
|
# 65,536 usable IP addresses
|
|
network_cidr: "10.200.0.0/16"
|
|
# wiregaurd listening port
|
|
network_listen_port: "51820"
|
|
cidrs:
|
|
## humans
|
|
## 10.200.16.1 to 10.200.31.254
|
|
## 4,096 usable IP addresses
|
|
- { "parent": "fsfe", "name": "humans", "cidr": "10.200.16.0/20" }
|
|
|
|
### humans > admins
|
|
### 10.200.16.1 to 10.200.19.254
|
|
### 1,024 usable IP addresses
|
|
- { "parent": "humans", "name": "admins", "cidr": "10.200.16.0/22" }
|
|
|
|
### humans > others
|
|
### 10.200.20.1 to 10.200.23.254
|
|
### 1,024 usable IP addresses
|
|
- { "parent": "humans", "name": "others", "cidr": "10.200.20.0/22" }
|
|
|
|
## machines
|
|
## 10.200.64.1 to 10.200.127.254
|
|
## with 16,384 usable IP addresses
|
|
- { "parent": "fsfe", "name": "machines", "cidr": "10.200.64.0/18" }
|
|
|
|
# humans > admins, e.g.
|
|
# - { "cidr": "admins", "name": "linus", "admin": "true" }
|
|
# humans > others, e.g.
|
|
# - { "cidr": "others", "name": "mk", "admin": "false" }
|
|
# - { "cidr": "others", "name": "fi", "admin": "false" }
|
|
# - { "cidr": "others", "name": "fani", "admin": "false" }
|
|
# machines, e.g.
|
|
# - { "cidr": "machines", "name": "cont1-plutex", "admin": "false" }
|
|
peers: "{{ peers_var|from_yaml }}"
|
|
peers_var: |
|
|
- { "cidr": "admins", "name": "linus", "admin": "true" }
|
|
- { "cidr": "admins", "name": "max-mehl", "admin": "true" }
|
|
- { "cidr": "admins", "name": "albert", "admin": "true" }
|
|
{% for host in groups['innernet_client'] %}
|
|
- {
|
|
"cidr": "machines",
|
|
"name": {{ host.replace('.', '-').replace('-fsfeurope-org', '').replace('-fsfe-org', '') }},
|
|
"admin": "false"
|
|
}
|
|
{% endfor %}
|