MEschenbacher's Wireguard Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. wireguard:
  2. wg0:
  3. # The two following keys are non-wireguard options.
  4. # Delete the config file. The interface will also be stopped and disables.
  5. # Defaults to False.
  6. #delete: False
  7. # Start and enable the service. Setting this to false causes the interface
  8. # to be stopped and disabled. Defaults to True.
  9. #enable: True
  10. # see wg(8) and wg-quick(8) for supported keys. We use all lowercase
  11. # letters.
  12. # address must be a list
  13. address:
  14. - fe80::1/64
  15. - 10.0.0.1/24
  16. listenport: 51820
  17. # very important to quote off. Jinja expands off without quotes to False
  18. # which will result in 'table' not being set in the config file, resulting
  19. # in defaulting to auto.
  20. table: 'off'
  21. peers:
  22. - publickey: foobar
  23. # address must be a list
  24. allowedips:
  25. - fe80::2
  26. - 10.0.0.2/32
  27. presharedkey: secret1
  28. - publickey: bazbar
  29. allowedips:
  30. - fe80::3
  31. - 10.0.0.3/32
  32. presharedkey: secret2
  33. # the config key can be used to pass a whole wireguard config in. The config
  34. # key takes precendce. Every other wireguard option in will then be ignored.
  35. # Make sure to have the correct indentation of 4 spaces more than the config
  36. # key and to start with config: |
  37. config: |
  38. [Interface]
  39. Address = fe80::1/64
  40. ListenPort = 51820
  41. PrivateKey = private
  42. Table = off
  43. [Peer]
  44. PublicKey = peer
  45. AllowedIPs = fe80::2