lnx02-pad.sls 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. lnx02.pad.in.ffho.net:
  2. sysLocation: Vega
  3. roles:
  4. - router
  5. - kvm
  6. ifaces:
  7. lo:
  8. prefixes:
  9. - 10.132.255.12/32
  10. - 2a03:2260:2342:ffff::12/128
  11. bond0:
  12. bond-slaves: "eth1"
  13. bridge-vids: "100 101 200 201 1013 2000 2004 2006 3002 4002"
  14. br0:
  15. bridge-ports: bond0
  16. bridge-vlan-aware: yes
  17. bridge-ports-condone-regex: "^[a-zA-Z0-9]+_(eth[0-9]+|v[0-9]{1,4})$"
  18. bridge-vids: "100 101 200 201 1013 2000 2004 2006 3002 4002"
  19. br0.1013:
  20. desc: "L2-Vega"
  21. prefixes:
  22. - <POP L2-Subnet prefix v4>/28
  23. - <POP L2-Subnet prefix v6>/64
  24. ospf:
  25. mode: active
  26. br0.4002:
  27. vlan-raw-device: br0
  28. prefixes:
  29. - 80.70.180.52/29
  30. - 2a02:450:0:6::52/64
  31. gateway:
  32. - 80.70.180.49
  33. - 2a02:450:0:6::1
  34. vrf: vrf_external
  35. veth_int2ext:
  36. prefixes:
  37. - <vEth transfer prefix v4>/31
  38. - <vEth transfer prefix v6>/126
  39. veth_ext2int:
  40. prefixes:
  41. - <vEth transfer prefix v4>/31
  42. - <vEth transfer prefix v6>/126
  43. vrf: vrf_external
  44. br-vm:
  45. bridge-ports: none
  46. bridge-ports-condone-regex: "^[a-zA-Z0-9]+_(v[0-9]{1,4}|)eth[0-9])$"
  47. prefixes:
  48. - <VM Gateway prefixes>
  49. vrf: vrf_external
  50. fe01_eth0:
  51. auto: False
  52. post-up:
  53. - "ip route add 80.70.181.61/32 dev br-vm table vrf_external"
  54. - "ip -6 route add 2a02:450:1:6::10/128 dev br-vm table vrf_external"
  55. mail_eth0:
  56. auto: False
  57. post-up:
  58. - "ip route add 80.70.181.59/32 dev br-vm table vrf_external"
  59. - "ip -6 route add 2a02:450:1::10/128 dev br-vm table vrf_external"
  60. cr02_eth0:
  61. desc: "cr02 external"
  62. auto: False
  63. post-up:
  64. - "ip route add 80.70.181.62/32 dev br-vm table vrf_external"
  65. - "ip -6 route add 2a02:450:1:5::10/128 dev br-vm table vrf_external"
  66. cr02_eth1:
  67. desc: "cr02 internal trunk"
  68. bridge-vids: "1013 2000 2004 2006 3002"
  69. ssh:
  70. root:
  71. {% if grains['id'] == 'lnx02.pad.in.ffho.net' %}
  72. privkey: |
  73. -----BEGIN RSA PRIVATE KEY-----
  74. ...
  75. -----END RSA PRIVATE KEY-----
  76. {% endif %}
  77. pubkey: ssh-rsa ABCD... root@lnx02.pad.in.ffho.net