Browse Source

module.showconf: configure hide_keys

tags/v0.9
Maximilian Eschenbacher 6 years ago
parent
commit
c0ec3d2d1c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      _modules/wireguard.py

+ 3
- 2
_modules/wireguard.py View File

else: else:
return _wg_ifaces().get(name) return _wg_ifaces().get(name)


def showconf(name):
return __salt__['cmd.run']('wg showconf %s' % (name,))
def showconf(name, hide_keys=True):
return __salt__['cmd.run']('wg showconf %s' % (name,),
env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'})


def set(name, listen_port=None, fwmark=None, private_key=None, peer=None, def set(name, listen_port=None, fwmark=None, private_key=None, peer=None,
preshared_key=None, endpoint=None, persistent_keepalive=None, preshared_key=None, endpoint=None, persistent_keepalive=None,

Loading…
Cancel
Save