init.sls 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # PPPoE (Vectoring-Glasfaser-Technologie!) (Salt Managed)
  3. #
  4. pppoe:
  5. pkg.installed
  6. at:
  7. pkg.installed
  8. # Generate VRF fix script and make sure it's run after session start
  9. /etc/ppp/ip-up.local:
  10. file.managed:
  11. - source: salt://pppoe/ip-up.local
  12. - mode: 755
  13. - template: jinja
  14. /usr/local/sbin/fix_ppp_vrf:
  15. file.managed:
  16. - source: salt://pppoe/fix_ppp_vrf
  17. - mode: 755
  18. # Disable all other scripts alltogether
  19. /etc/ppp/ip-down.local:
  20. file.managed:
  21. - source: salt://pppoe/noop.local
  22. - mode: 755
  23. /etc/ppp/ipv6-up.local:
  24. file.managed:
  25. - source: salt://pppoe/noop.local
  26. - mode: 755
  27. /etc/ppp/ipv6-down.local:
  28. file.managed:
  29. - source: salt://pppoe/noop.local
  30. - mode: 755
  31. # Install peer config and password
  32. /etc/ppp/peers/tkom:
  33. file.managed:
  34. - source: salt://pppoe/tkom_peer.tmpl
  35. - template: jinja
  36. /etc/ppp/pap-secrets:
  37. file.managed:
  38. - source: salt://pppoe/pap-secrets
  39. - template: jinja