Changes in / [95ea916:4f03a27]
- Location:
- src/puppetcode/environments/test
- Files:
-
- 11 deleted
- 8 edited
-
hieradata/common.yaml (modified) (2 diffs)
-
modules/gnuboat_gnuboat/manifests/config.pp (deleted)
-
modules/gnuboat_gnuboat/manifests/init.pp (modified) (1 diff)
-
modules/gnuboat_gnuboat/manifests/install.pp (modified) (1 diff)
-
modules/gnuboat_gnuboat/manifests/service.pp (deleted)
-
modules/gnuboat_gnuboat/templates/lighttpd.conf.epp (deleted)
-
modules/gnuboat_hostapd/files/default (deleted)
-
modules/gnuboat_hostapd/manifests/config.pp (modified) (3 diffs)
-
modules/gnuboat_hostapd/manifests/dnsmasq_config.pp (deleted)
-
modules/gnuboat_hostapd/manifests/dnsmasq_install.pp (deleted)
-
modules/gnuboat_hostapd/manifests/dnsmasq_service.pp (deleted)
-
modules/gnuboat_hostapd/manifests/init.pp (modified) (1 diff)
-
modules/gnuboat_hostapd/manifests/install.pp (modified) (1 diff)
-
modules/gnuboat_hostapd/manifests/service.pp (modified) (1 diff)
-
modules/gnuboat_hostapd/templates/default.epp (deleted)
-
modules/gnuboat_hostapd/templates/dnsmasq.conf.epp (deleted)
-
modules/gnuboat_hostapd/templates/hostapd.conf.epp (modified) (1 diff)
-
modules/gnuboat_hostapd/templates/hostapd.interface.epp (deleted)
-
modules/gnuboat_hostapd/templates/hosts.epp (deleted)
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/test/hieradata/common.yaml
r95ea916 r4f03a27 5 5 - gnuboat_gpsd 6 6 - gnuboat_gnuboat 7 - gnuboat_hostapd8 7 9 gnuboat_lighttpd::s ervuce::status: 'running'10 gnuboat_lighttpd:: service::enabled: true8 gnuboat_lighttpd::status: 'running' 9 gnuboat_lighttpd::enabled: true 11 10 gnuboat_epd::service::status: 'running' 12 11 gnuboat_epd::service::enabled: true … … 18 17 gnuboat_gpsd::service::enabled: true 19 18 gnuboat_gpsd::service::devices: '/dev/ttyACM0' 20 gnuboat_gnuboat::service::status: 'running'21 gnuboat_gnuboat::service::enabled: true22 gnuboat_gnuboat::server: true23 gnuboat_gnuboat::webclient: true24 gnuboat_hostapd::config::interface: 'wlan0'25 gnuboat_hostapd::config::country_code: 'de' -
src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/init.pp
r95ea916 r4f03a27 1 class gnuboat_gnuboat 2 ( 3 Boolean $server = true, 4 Boolean $webclient = true, 5 ) 1 class gnuboat_gnuboat() 6 2 { 7 contain gnuboat_gnuboat::install8 contain gnuboat_gnuboat::config9 contain gnuboat_gnuboat::service3 contain gnuboat_gnuboat::install 4 # contain gnuboat_lighttpd::config 5 # contain gnuboat_lighttpd::service 10 6 11 Class['gnuboat_gnuboat::install'] -> 12 Class['gnuboat_gnuboat::config'] ->13 Class['gnuboat_gnuboat::service']7 # Class['gnuboat_gnuboat::install'] 8 # Class['gnuboat_lighttpd::config'] -> 9 # Class['gnuboat_lighttpd::service'] 14 10 } -
src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/install.pp
r95ea916 r4f03a27 1 1 class gnuboat_gnuboat::install() inherits gnuboat_gnuboat 2 2 { 3 include apt 4 5 # apt::source{'gnuboatapt': 6 # comment => 'This is the raspbian repository for GNUBoat', 7 # location => 'http://ftp.engsas.de/unstable/gnuboat/', 8 # release => 'jessie', 9 # repos => 'main', 10 # pin => '-10', 11 # include => { 12 # 'src' => true, 13 # 'deb' => true, 14 # }, 15 # } 16 17 if $server { 18 package{'gnuboat-server': 19 ensure => $version, 20 notify => Service['gnuboat'], 21 require => Apt::Source['gnuboatapt'], 22 } 23 } 24 25 if $webclient { 26 package{'gnuboat-webclient': 27 ensure => $version, 28 require => Apt::Source['gnuboatapt'], 29 } 30 } 3 package{'php5-rrd': 4 ensure => $version, 5 notify => Service['lighttpd'], 6 } 31 7 } -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/config.pp
r95ea916 r4f03a27 1 class gnuboat_hostapd::config1 class config 2 2 ( 3 String $interface, 4 String $netmask = '255.255.255.0', 3 String $interface = 'wlan0', 5 4 String $hw_mode = 'g', 6 5 Integer $channel = 0, … … 10 9 Boolean $ieee80211ac = false, 11 10 Boolean $wmm_enabled = false, 12 String $ssid = 'GNU Boat',11 String $ssid = 'GNU Boat', 13 12 Enum['1', '2', '3'] $auth_algs = '1', 14 Integer $wpa = 2,13 Integer $wpa = '2', 15 14 String $wpa_key_mgmt = 'WPA-PSK', 16 15 String $rsn_pairwise = 'CCMP', 17 String $wpa_passphrase = ' gnu.boat',16 String $wpa_passphrase = 'GNUBoat', 18 17 ) 19 inherits gnuboat_hostapd18 inherits hostapd 20 19 { 21 file{'/etc/hostapd/hostapd.conf' :20 file{'/etc/hostapd/hostapd.conf', 22 21 ensure => present, 23 22 owner => 'root', 24 23 group => 'root', 25 24 mode => '0600', 26 content => epp(' gnuboat_hostapd/hostapd.conf.epp',25 content => epp('puppet:///hostapd/hostapd.conf.epp', 27 26 { 28 27 'interface' => $interface, … … 43 42 ), 44 43 } 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' => $netmask56 }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 68 44 } -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/init.pp
r95ea916 r4f03a27 1 class gnuboat_hostapd1 class 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,8 4 ) 9 5 { 10 contain gnuboat_hostapd::install11 contain gnuboat_hostapd::service12 contain gnuboat_hostapd::config13 6 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_install21 contain gnuboat_hostapd::dnsmasq_service22 contain gnuboat_hostapd::dnsmasq_config23 24 Class['gnuboat_hostapd::dnsmasq_install'] ->25 Class['gnuboat_hostapd::dnsmasq_config'] ->26 Class['gnuboat_hostapd::dnsmasq_service']27 }28 7 } -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/install.pp
r95ea916 r4f03a27 1 class gnuboat_hostapd::install() inherits gnuboat_hostapd1 class hostapd::install() inherits hostapd 2 2 { 3 3 package{'hostapd': -
src/puppetcode/environments/test/modules/gnuboat_hostapd/manifests/service.pp
r95ea916 r4f03a27 1 class gnuboat_hostapd::service1 class hostapd::service 2 2 ( 3 3 Enum['running', 'stopped'] $status = 'running', 4 4 Boolean $enabled = true, 5 5 ) 6 inherits gnuboat_hostapd6 inherits hostapd 7 7 { 8 8 service{'hostapd': -
src/puppetcode/environments/test/modules/gnuboat_hostapd/templates/hostapd.conf.epp
r95ea916 r4f03a27 6 6 ieee80211n=<%= $ieee80211n %> 7 7 ieee80211ac=<%= $ieee80211ac %> 8 <% if wmm_enabled { -%>9 wmm_enabled=110 <% } else { -%>11 wmm_enabled=012 <% } -%>8 <% if wmm_enabled %> 9 wmm_enabled=1 10 <% else %> 11 wmm_enabled=0 12 <% end %> 13 13 ssid=<%= $ssid %> 14 14 auth_algs=<%= $auth_algs %>
Note:
See TracChangeset
for help on using the changeset viewer.
