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 年之前
6 年之前
1234567891011121314151617181920212223242526272829303132333435363738
  1. # wireguard-formula
  2. Installs WireGuard (usually dkms and utils), and creates interfaces plus peers.
  3. See the full [Salt Formulas installation and usage instructions](http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html).
  4. # Configuration
  5. All configuration is done via pillar data. See `pillar.example` for examples.
  6. # Available states
  7. ## `wg.present (name, listen_port, fwmark, private_key, preshared_key)`
  8. Creates a wireguard interface and sets interface-wide parameters.
  9. ## `wg.peer_present (name, interface, endpoint, persistent_keepalive, allowed_ips)`
  10. Adds a peer to an interface and sets peer-specific parameters.
  11. ## `wg.absent (name)`
  12. Removes a wireguard interface.
  13. ## `wg.peer_absent (name, interface)`
  14. Removes a peer from an interface.
  15. # Excerpt of a few available module functions
  16. `salt-call wg.create wgtest`
  17. `salt-call wg.show wgtest`
  18. `salt-call wg.set interface listen_port=1337`
  19. `salt-call wg.delete wgtest`