puppet-network icon indicating copy to clipboard operation
puppet-network copied to clipboard

[Feature Request] support el7 wifi related interface configuration

Open jhoblitt opened this issue 4 years ago • 1 comments

On redhat/el7 there a numerous parameters associated with configuring wifi. E.g.:

ESSID=foo
MODE=Managed
KEY_MGMT=WPA-PSK
SECURITYMODE=open
MAC_ADDRESS_RANDOMIZATION=default
TYPE=Wireless
IEEE_8021X_EAP_METHODS=PEAP
IEEE_8021X_IDENTITY=bob
IEEE_8021X_INNER_AUTH_METHODS=MSCHAPV2

There is also a per interface /etc/sysconfig/network-scripts/keys-<iface> file for secrets. E.g.:

IEEE_8021X_PASSWORD=...

jhoblitt avatar Dec 08 '20 17:12 jhoblitt

You can specify any custom keypairs of options with the options_extra_redhat argument of the network::interface define, with values like: network::interface { 'ifname': [...] options_extra_redhat => { ESSID => 'foo', MODE => 'Managed', KEY_MGMT => 'WPA-PSK' ... }

The keys files are not supported, suppose the best approach would be to create a custom wrapper around the network::interface define where to create keys files and add any custom default params.

alvagante avatar Dec 18 '20 18:12 alvagante