init.sls 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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
  40. # Install pppd restart script and cron-job
  41. /etc/cron.d/ff_fix_ppp:
  42. file.managed:
  43. - source: salt://pppoe/ff_fix_ppp.cron
  44. /usr/local/sbin/ff_fix_ppp:
  45. file.managed:
  46. - source: salt://pppoe/ff_fix_ppp
  47. - mode: 755