[Feature Request] support el7 wifi related interface configuration
jhoblitt opened this issue · 1 comments
jhoblitt commented
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
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.