example42 / puppet-network

Puppet module to manage networking on Suse, Debian and RedHat.
Apache License 2.0
31 stars 166 forks source link

[Feature Request] support el7 wifi related interface configuration #332

Open jhoblitt opened 3 years ago

jhoblitt commented 3 years ago

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=...
alvagante commented 3 years ago

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.