forked from zentralwerk/network
parent
68e0ed1f4a
commit
95e7354749
@ -0,0 +1,13 @@
|
||||
hosts-inet:
|
||||
core:
|
||||
server1: 172.20.72.1
|
||||
serv-gw: 172.20.72.2
|
||||
pub-gw: 172.20.72.3
|
||||
priv1-gw: 172.20.72.4
|
||||
priv2-gw: 172.20.72.5
|
||||
upstream1: 172.20.72.6
|
||||
anon1: 172.20.72.7
|
||||
pub:
|
||||
pub-gw: 172.20.76.1
|
||||
serv:
|
||||
serv-gw: 172.20.73.1
|
@ -0,0 +1,7 @@
|
||||
subnets-inet:
|
||||
core: 172.20.72.0/26
|
||||
serv: 172.20.73.0/26
|
||||
pub: 172.20.76.0/23
|
||||
priv1: 172.20.74.0/28
|
||||
priv2: 172.20.75.0/28
|
||||
mgm: 10.0.0.0/24
|
@ -0,0 +1,5 @@
|
||||
base:
|
||||
'*':
|
||||
- hosts
|
||||
- subnets
|
||||
- vlans
|
@ -0,0 +1,4 @@
|
||||
vlans:
|
||||
core: 1
|
||||
server: 2
|
||||
public: 3
|
@ -1,38 +1,31 @@
|
||||
public:
|
||||
pub-gw:
|
||||
interfaces:
|
||||
- type: veth
|
||||
bridge: br-core
|
||||
name: core
|
||||
v4: 172.20.72.1/26
|
||||
- type: phys
|
||||
bridge: bond0.2
|
||||
name: public
|
||||
v4: 172.20.76.1/23
|
||||
core:
|
||||
type: veth
|
||||
pub:
|
||||
type: phys
|
||||
|
||||
servers:
|
||||
serv-gw:
|
||||
interfaces:
|
||||
- type: veth
|
||||
bridge: br-core
|
||||
name: core
|
||||
v4: 172.20.72.2/26
|
||||
core:
|
||||
type: veth
|
||||
|
||||
priv1:
|
||||
priv1-gw:
|
||||
interfaces:
|
||||
- type: veth
|
||||
bridge: br-core
|
||||
name: core
|
||||
v4: 172.20.72.3/26
|
||||
core:
|
||||
type: veth
|
||||
|
||||
priv2:
|
||||
priv2-gw:
|
||||
interfaces:
|
||||
- type: veth
|
||||
bridge: br-core
|
||||
name: core
|
||||
v4: 172.20.72.4/26
|
||||
core:
|
||||
type: veth
|
||||
|
||||
upstream1:
|
||||
interfaces:
|
||||
- type: veth
|
||||
bridge: br-core
|
||||
name: core
|
||||
v4: 172.20.72.5/26
|
||||
core:
|
||||
type: veth
|
||||
|
||||
anon1:
|
||||
interface:
|
||||
core:
|
||||
type: veth
|
||||
|
@ -0,0 +1,10 @@
|
||||
127.0.0.1 localhost
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
|
||||
{% for net, hosts in pillar['hosts-inet'].items() %}
|
||||
{% if hosts.get(id) %}
|
||||
{{ hosts[id] }} {{ id }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ pillar['hosts-inet']['core']['server1'] }} salt
|
@ -0,0 +1,2 @@
|
||||
openssh-server:
|
||||
pkg.purged: []
|
@ -0,0 +1,2 @@
|
||||
bird:
|
||||
pkg.installed: []
|
@ -0,0 +1,2 @@
|
||||
unbound:
|
||||
pkg.installed: []
|
Loading…
Reference in new issue