Changeset d82bcf6 for src/puppetcode/environments/test/modules/gnuboat_gpsd
- Timestamp:
- Apr 28, 2017, 2:27:33 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- 6cce084, be20a81
- Parents:
- 06c0abb (diff), 22f7269 (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. - Location:
- src/puppetcode/environments/test/modules/gnuboat_gpsd
- Files:
-
- 1 added
- 2 edited
-
manifests/service.pp (modified) (3 diffs)
-
templates/gpsd.epp (modified) (2 diffs)
-
templates/gpsd.socket.epp (added)
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/test/modules/gnuboat_gpsd/manifests/service.pp
r06c0abb rd82bcf6 5 5 Boolean $usb_auto = true, 6 6 String $devices = '/dev/ttyAMA0', 7 Boolean $network_access = false, 7 8 ) 8 9 inherits gnuboat_gpsd … … 13 14 subscribe => Package['gpsd'], 14 15 } 16 17 if(!$network_access) 18 { 19 $options = '' 20 } 21 else 22 { 23 $options = '-G' 24 $listen_stream = '0.0.0.0:2947' 25 file{'/etc/systemd/system/gpsd.socket': 26 ensure => present, 27 owner => 'root', 28 group => 'root', 29 mode => '0600', 30 notify => [Exec['systemctl-daemon-reload'], Service['gpsd']], 31 content => epp('gnuboat_gpsd/gpsd.socket.epp', 32 { 33 'listen_stream' => $listen_stream, 34 }), 35 } 36 37 # Hack as puppet does not call systemctl daemon-reload, if needed until now (2017-04-28) 38 exec{'systemctl-daemon-reload': 39 command => 'systemctl daemon-reload', 40 path => '/bin:/usr/bin', 41 } 42 } 43 15 44 16 45 file{'/etc/default/gpsd': … … 25 54 'usb_auto' => $usb_auto, 26 55 'devices' => $devices, 56 'options' => $options, 27 57 }), 28 58 } 59 29 60 } -
src/puppetcode/environments/test/modules/gnuboat_gpsd/templates/gpsd.epp
r06c0abb rd82bcf6 1 <%- | Boolean $enabled, 2 Boolean $usb_auto, 3 String $devices, 4 String $options 5 | -%> 1 6 # Default settings for the gpsd init script and the hotplug wrapper. 2 7 … … 22 27 23 28 # Other options you want to pass to gpsd 24 GPSD_OPTIONS=" "29 GPSD_OPTIONS="<%= $options %>"
Note:
See TracChangeset
for help on using the changeset viewer.
