diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-21 18:11:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-21 18:11:58 +0100 |
commit | 2637e67307f5faa613c0077e7a49b4a5f37daf39 (patch) | |
tree | 5f4d2a4802b840fcaabdb59ab4bf1d90ab7472bc /manifests | |
parent | Better wpa_supplicant. (diff) | |
download | wpa_supplicant-2637e67307f5faa613c0077e7a49b4a5f37daf39.tar.gz wpa_supplicant-2637e67307f5faa613c0077e7a49b4a5f37daf39.tar.xz |
wpa_supplicant add country field.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/interface.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/interface.pp b/manifests/interface.pp index 3598103..42afe3e 100644 --- a/manifests/interface.pp +++ b/manifests/interface.pp @@ -1,5 +1,6 @@ define wpa_supplicant::interface ( String $interface = $name, + String[2,2] $country = 'US', Array[String] $networks = [], ) { service { "wpa_supplicant@${interface}.service": @@ -18,6 +19,7 @@ define wpa_supplicant::interface ( file { $conf_file: ensure => file, content => epp('wpa_supplicant/wpa_supplicant.conf.epp', { + country => $country, networks => $network_items, }), } ~> exec { "Reload wpa_supplicant for ${interface}": |