summaryrefslogtreecommitdiff
path: root/manifests/interface.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/interface.pp')
-rw-r--r--manifests/interface.pp2
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}":