Add Proxmox Ceph mesh network playbook
This commit is contained in:
15
proxmox/templates/ceph.interfaces.j2
Normal file
15
proxmox/templates/ceph.interfaces.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
# {{ ansible_managed }}
|
||||
# ifupdown interfaces(5) file for setting up CEPH network
|
||||
|
||||
# Real routing is handled by FRR routing daemon
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
up ip -6 addr add {{ ceph_mesh.address }} dev lo
|
||||
|
||||
{% for iface in ceph_mesh.interfaces %}
|
||||
auto {{ iface }}
|
||||
iface {{ iface }} inet6 static
|
||||
pre-up ip link set $IFACE up
|
||||
mtu 9000
|
||||
|
||||
{% endfor %}
|
30
proxmox/templates/frr.conf.j2
Normal file
30
proxmox/templates/frr.conf.j2
Normal file
@@ -0,0 +1,30 @@
|
||||
# {{ ansible_managed }}
|
||||
frr version 10.2.2
|
||||
frr defaults traditional
|
||||
hostname {{ inventory_hostname }}
|
||||
log syslog informational
|
||||
no ip forwarding
|
||||
service integrated-vtysh-config
|
||||
!
|
||||
{% for iface in ceph_mesh.interfaces %}
|
||||
interface {{ iface }}
|
||||
ipv6 router openfabric 1
|
||||
openfabric csnp-interval 5
|
||||
openfabric hello-interval 1
|
||||
openfabric hello-multiplier 3
|
||||
exit
|
||||
!
|
||||
{% endfor %}
|
||||
interface lo
|
||||
ipv6 router openfabric 1
|
||||
openfabric csnp-interval 5
|
||||
openfabric hello-interval 1
|
||||
openfabric hello-multiplier 3
|
||||
openfabric passive
|
||||
exit
|
||||
!
|
||||
router openfabric 1
|
||||
net {{ ceph_mesh.openfabric_net }}
|
||||
lsp-gen-interval 5
|
||||
exit
|
||||
!
|
Reference in New Issue
Block a user