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.

README.md 1.6KB

6 년 전
6 년 전
6 년 전
6 년 전
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # wireguard-formula
  2. This formula is supposed to install WireGuard (usually dkms and utils), and
  3. create interfaces including peers. Configuration is done via pillar (see below).
  4. **Attention**: WireGuard is not yet included in the linux mainline kernel. Also,
  5. the installation is different on every distribution and sometimes you even have
  6. to include unstable/testing branches. For now, please
  7. [install WireGuard](https://www.wireguard.com/install/) yourself. You can use
  8. this formula afterwards.
  9. **Important**: On every configuration change, this formula restarts the
  10. wireguard interface in order to apply any changes.
  11. # Requirements
  12. - systemd: This formula makes use of wireguard-shipped systemd service files
  13. - wireguard kernel module
  14. # Installation
  15. See the full [Salt Formulas installation and usage instructions](http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html).
  16. # Configuration
  17. All configuration is done via pillar data. See `pillar.example` for examples.
  18. This means in particular, that you do not have to use any of the following
  19. states youself.
  20. Some keys can be present in the config file multiple times. To do this, you can
  21. start a list under a key. If the configuration format allows a single comma
  22. separated string for the respective key, they all will appear in the config
  23. file.
  24. ```
  25. wireguard:
  26. interfaces:
  27. wgtest:
  28. config:
  29. DNS:
  30. - 8.8.8.8
  31. - 1.1.1.1
  32. DNS: 9.9.9.9, 1.0.0.1
  33. Address: fe80::1, fe80::2
  34. Address:
  35. - fe80::3
  36. - fe80::4
  37. ```
  38. # Available states
  39. No states. Include `wireguard` in the top.sls file.
  40. ```
  41. base:
  42. [... snip ...]
  43. 'some_minion':
  44. - wireguard
  45. [... snip ...]
  46. ```