Changeset ba8e5bd for src


Ignore:
Timestamp:
Jul 26, 2017, 10:34:41 AM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
1dbcca2, e62e787
Parents:
03d4b56
Message:

Added udev rule for the hostapd interface, which is enabled by default

Location:
src/puppetcode/environments/gnuboat
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/gnuboat/hieradata/common.yaml

    r03d4b56 rba8e5bd  
    5151gnuboat_gnuboat::server: true
    5252gnuboat_gnuboat::webclient: true
    53 gnuboat_hostapd::config::interface: 'wlan0'
     53gnuboat_hostapd::config::mac_address: 00:0f:60:0b:18:c1
    5454gnuboat_hostapd::config::country_code: 'de'
    5555gnuboat_canboat::service::can_interface: 'can0'
  • src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/manifests/config.pp

    r03d4b56 rba8e5bd  
    11class gnuboat_hostapd::config
    22(
    3         String $interface,
     3        String $mac_address,
     4        String $interface = 'wlan-hotspot',
     5        Boolean $add_udev_rule = true,
    46        String $netmask = '255.255.255.0',
    57        String $hw_mode = 'g',
    … …  
    6668        }
    6769
     70        if $add_udev_rule {
     71                file{'/etc/udev/rules.d/98-hostapd.rules':
     72                        ensure => present,
     73                        owner => 'root',
     74                        group => 'root',
     75                        mode => '0600',
     76                        notify => Service['hostapd'],
     77                        content => epp('gnuboat_hostapd/hostapd-udev.epp',
     78                        {
     79                                'mac_address' => $mac_address,
     80                                'interface' => $interface,
     81                        }),
     82                }
     83        }
     84
     85
    6886}
Note: See TracChangeset for help on using the changeset viewer.