Ignore:
Timestamp:
Aug 23, 2016, 9:17:42 AM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
d43197d
Parents:
4f03a27 (diff), 3f77ad0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin' into debian/jessie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/config.pp

    r4f03a27 r95ea916  
    1 class config
     1class gnuboat_hostapd::config
    22(
    3         String $interface = 'wlan0',
     3        String $interface,
     4        String $netmask = '255.255.255.0',
    45        String $hw_mode = 'g',
    56        Integer $channel = 0,
    … …  
    910        Boolean $ieee80211ac = false,
    1011        Boolean $wmm_enabled = false,
    11         String $ssid = 'GNU Boat',
     12        String $ssid = 'GNUBoat',
    1213        Enum['1', '2', '3'] $auth_algs = '1',
    13         Integer $wpa = '2',
     14        Integer $wpa = 2,
    1415        String $wpa_key_mgmt = 'WPA-PSK',
    1516        String $rsn_pairwise = 'CCMP',
    16         String $wpa_passphrase = 'GNUBoat',
     17        String $wpa_passphrase = 'gnu.boat',
    1718)
    18 inherits hostapd
     19inherits gnuboat_hostapd
    1920{
    20         file{'/etc/hostapd/hostapd.conf',
     21        file{'/etc/hostapd/hostapd.conf':
    2122                ensure => present,
    2223                owner => 'root',
    2324                group => 'root',
    2425                mode => '0600',
    25                 content => epp('puppet:///hostapd/hostapd.conf.epp',
     26                content => epp('gnuboat_hostapd/hostapd.conf.epp',
    2627                        {
    2728                                'interface' => $interface,
    … …  
    4243                ),
    4344        }
     45
     46        file{'/etc/network/interfaces.d/hostapd':
     47                ensure => present,
     48                owner => 'root',
     49                group => 'root',
     50                mode => '0600',
     51                content => epp('gnuboat_hostapd/hostapd.interface.epp',
     52                        {
     53                                'interface' => $interface,
     54                                'hostip' => $hostip,
     55                                'netmask' => $netmask
     56                        }
     57                ),
     58        }
     59
     60        file{'/etc/default/hostapd':
     61                ensure => present,
     62                owner => 'root',
     63                group => 'root',
     64                mode => '0600',
     65                content => file('gnuboat_hostapd/default'),
     66        }
     67
    4468}
Note: See TracChangeset for help on using the changeset viewer.