summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 19:55:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 20:18:41 +0100
commitf207e3ccc89c85bd4131003af94bec0fe0dc32a2 (patch)
treebb3067797f7feaa8efbdcd129c51411aa7e301d7 /templates
downloadwpa_supplicant-f207e3ccc89c85bd4131003af94bec0fe0dc32a2.tar.gz
wpa_supplicant-f207e3ccc89c85bd4131003af94bec0fe0dc32a2.tar.xz
Add wpa_supplicant.
Diffstat (limited to 'templates')
-rw-r--r--templates/wpa_supplicant.conf.epp15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/wpa_supplicant.conf.epp b/templates/wpa_supplicant.conf.epp
new file mode 100644
index 0000000..48680bb
--- /dev/null
+++ b/templates/wpa_supplicant.conf.epp
@@ -0,0 +1,15 @@
+<%- | Array[Hash] $networks | -%>
+# FILE MANAGED BY PUPPET
+
+ctrl_interface=DIR=<%= $wpa_supplicant::ctrl_interface %> GROUP=wheel
+update_config=0
+ap_scan=1
+eapol_version=2
+
+<% $networks.each |$network| { %>
+network={
+ <%- $network.each |$k, $v| { -%>
+ <%= $k %>=<%= $v %>
+ <%- } -%>
+}
+<% } %>