Changeset 2925c4a for src/puppetcode/environments/test/modules
- Timestamp:
- Aug 23, 2016, 12:02:23 AM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- 04de4a4
- Parents:
- b5208ff
- Location:
- src/puppetcode/environments/test/modules/gnuboat_hostapd
- Files:
-
- 8 added
- 5 edited
-
files/default (added)
-
manifests/config.pp (modified) (3 diffs)
-
manifests/dnsmasq_config.pp (added)
-
manifests/dnsmasq_install.pp (added)
-
manifests/dnsmasq_service.pp (added)
-
manifests/init.pp (modified) (1 diff)
-
manifests/install.pp (modified) (1 diff)
-
manifests/service.pp (modified) (1 diff)
-
templates/default.epp (added)
-
templates/dnsmasq.conf.epp (added)
-
templates/hostapd.conf.epp (modified) (1 diff)
-
templates/hostapd.interface.epp (added)
-
templates/hosts.epp (added)
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/config.pp
rb5208ff r2925c4a 1 class config1 class gnuboat_hostapd::config 2 2 ( 3 String $interface = 'wlan0', 3 String $interface, 4 String $netmask = '255.255.255.0', 4 5 String $hw_mode = 'g', 5 6 Integer $channel = 0, … … 9 10 Boolean $ieee80211ac = false, 10 11 Boolean $wmm_enabled = false, 11 String $ssid = 'GNU Boat',12 String $ssid = 'GNUBoat', 12 13 Enum['1', '2', '3'] $auth_algs = '1', 13 Integer $wpa = '2',14 Integer $wpa = 2, 14 15 String $wpa_key_mgmt = 'WPA-PSK', 15 16 String $rsn_pairwise = 'CCMP', 16 String $wpa_passphrase = ' GNUBoat',17 String $wpa_passphrase = 'gnu.boat', 17 18 ) 18 inherits hostapd19 inherits gnuboat_hostapd 19 20 { 20 file{'/etc/hostapd/hostapd.conf' ,21 file{'/etc/hostapd/hostapd.conf': 21 22 ensure => present, 22 23 owner => 'root', 23 24 group => 'root', 24 25 mode => '0600', 25 content => epp(' puppet:///hostapd/hostapd.conf.epp',26 content => epp('gnuboat_hostapd/hostapd.conf.epp', 26 27 { 27 28 'interface' => $interface, … … 42 43 ), 43 44 } 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 44 68 } -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/init.pp
rb5208ff r2925c4a 1 class hostapd1 class gnuboat_hostapd 2 2 ( 3 3 String $version = 'latest', 4 String $hostip = '192.168.254.1', 5 String $hostname = 'gnu', 6 String $domain = 'boat', 7 Boolean $dnsmasq_enable = true, 4 8 ) 5 9 { 10 contain gnuboat_hostapd::install 11 contain gnuboat_hostapd::service 12 contain gnuboat_hostapd::config 6 13 14 Class['gnuboat_hostapd::install'] -> 15 Class['gnuboat_hostapd::config'] -> 16 Class['gnuboat_hostapd::service'] 17 18 19 if $dnsmasq_enable { 20 contain gnuboat_hostapd::dnsmasq_install 21 contain gnuboat_hostapd::dnsmasq_service 22 contain gnuboat_hostapd::dnsmasq_config 23 24 Class['gnuboat_hostapd::dnsmasq_install'] -> 25 Class['gnuboat_hostapd::dnsmasq_config'] -> 26 Class['gnuboat_hostapd::dnsmasq_service'] 27 } 7 28 } -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/install.pp
rb5208ff r2925c4a 1 class hostapd::install() inheritshostapd1 class gnuboat_hostapd::install() inherits gnuboat_hostapd 2 2 { 3 3 package{'hostapd': -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/service.pp
rb5208ff r2925c4a 1 class hostapd::service1 class gnuboat_hostapd::service 2 2 ( 3 3 Enum['running', 'stopped'] $status = 'running', 4 4 Boolean $enabled = true, 5 5 ) 6 inherits hostapd6 inherits gnuboat_hostapd 7 7 { 8 8 service{'hostapd': -
src/puppetcode/environments/test/modules/gnuboat_hostapd/templates/hostapd.conf.epp
rb5208ff r2925c4a 6 6 ieee80211n=<%= $ieee80211n %> 7 7 ieee80211ac=<%= $ieee80211ac %> 8 <% if wmm_enabled %>9 wmm_enabled=110 <% else%>11 wmm_enabled=012 <% end%>8 <% if wmm_enabled { -%> 9 wmm_enabled=1 10 <% } else { -%> 11 wmm_enabled=0 12 <% } -%> 13 13 ssid=<%= $ssid %> 14 14 auth_algs=<%= $auth_algs %>
Note:
See TracChangeset
for help on using the changeset viewer.
