Index: src/puppetcode/environments/gnuboat/hieradata/common.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/hieradata/common.yaml	(revision 03d4b5697b9e75ac1e8999b47f63a75a4fd08400)
+++ src/puppetcode/environments/gnuboat/hieradata/common.yaml	(revision ba8e5bd051f29fa7c555cd4127413a462ed8baaf)
@@ -51,5 +51,5 @@
 gnuboat_gnuboat::server: true
 gnuboat_gnuboat::webclient: true
-gnuboat_hostapd::config::interface: 'wlan0'
+gnuboat_hostapd::config::mac_address: 00:0f:60:0b:18:c1
 gnuboat_hostapd::config::country_code: 'de'
 gnuboat_canboat::service::can_interface: 'can0'
Index: src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/manifests/config.pp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/manifests/config.pp	(revision 03d4b5697b9e75ac1e8999b47f63a75a4fd08400)
+++ src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/manifests/config.pp	(revision ba8e5bd051f29fa7c555cd4127413a462ed8baaf)
@@ -1,5 +1,7 @@
 class gnuboat_hostapd::config
 (
-	String $interface,
+	String $mac_address,
+	String $interface = 'wlan-hotspot',
+	Boolean $add_udev_rule = true,
 	String $netmask = '255.255.255.0',
 	String $hw_mode = 'g',
@@ -66,3 +68,19 @@
 	}
 
+	if $add_udev_rule {
+                file{'/etc/udev/rules.d/98-hostapd.rules':
+                        ensure => present,
+                        owner => 'root',
+                        group => 'root',
+                        mode => '0600',
+                        notify => Service['hostapd'],
+                        content => epp('gnuboat_hostapd/hostapd-udev.epp',
+                        {
+                                'mac_address' => $mac_address,
+				'interface' => $interface,
+                        }),
+                }
+        }
+
+
 }
Index: src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hostapd-udev.epp
===================================================================
--- src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hostapd-udev.epp	(revision ba8e5bd051f29fa7c555cd4127413a462ed8baaf)
+++ src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hostapd-udev.epp	(revision ba8e5bd051f29fa7c555cd4127413a462ed8baaf)
@@ -0,0 +1,4 @@
+<%- |   String $mac_address,
+        String $interface
+| -%>
+KERNEL=="wlan*", ATTR{address}=="<%= $mac_address %>", NAME="<%= $interface %>"
