Changeset 237e6bd
- Timestamp:
- Aug 1, 2017, 3:39:05 PM (9 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- cd0f9cc
- Parents:
- fc9d514
- Location:
- src/puppetcode/environments/gnuboat
- Files:
-
- 14 added
- 3 edited
-
hieradata/common.yaml (modified) (4 diffs)
-
modules/chrony/LICENSE (added)
-
modules/chrony/README.md (added)
-
modules/chrony/Rakefile (added)
-
modules/chrony/checksums.json (added)
-
modules/chrony/manifests/config.pp (added)
-
modules/chrony/manifests/init.pp (added)
-
modules/chrony/manifests/install.pp (added)
-
modules/chrony/manifests/params.pp (added)
-
modules/chrony/manifests/service.pp (added)
-
modules/chrony/metadata.json (added)
-
modules/chrony/spec/classes/init_spec.rb (added)
-
modules/chrony/spec/spec_helper.rb (added)
-
modules/chrony/templates/chronyd.conf.erb (added)
-
modules/chrony/tests/init.pp (added)
-
modules/gnuboat_gpsd/manifests/service.pp (modified) (3 diffs)
-
modules/gnuboat_gpsd/templates/gpsd.epp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/hieradata/common.yaml
rfc9d514 r237e6bd 8 8 - gnuboat_canboat 9 9 - apt 10 - ntp 10 # - ntp 11 - chrony 11 12 12 13 apt::sources: … … 22 23 src: true 23 24 deb: true 24 apt::sources:25 25 'gnuboat-raspbian': 26 26 comment: 'GNUBoat raspbian repository' … … 53 53 gnuboat_gpsd::service::devices: '/dev/ttyACM0' 54 54 gnuboat_gpsd::service::network_access: true 55 gnuboat_gpsd::service::poll_on_startup: true 55 56 gnuboat_gnuboat::service::status: 'running' 56 57 gnuboat_gnuboat::service::enabled: true … … 63 64 gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A' 64 65 gnuboat_canboat::service::monitor: true 65 ntp::enable: true66 ntp::servers: 67 - '127.127.28.0' 68 ntp::fudge: 69 - '127.127.28.0 refid GPS' 66 chrony::sync_local_clock: true 67 chrony::offline: true 68 chrony::refclock: 69 - 'SHM 0 delay 0.5 refid NMEA' 70 chrony::serve_ntp: true 70 71 # ntp >= 4.2.8 72 #ntp::enable: true 71 73 #ntp::servers: 72 74 # - '127.127.46.0' -
src/puppetcode/environments/gnuboat/modules/gnuboat_gpsd/manifests/service.pp
rfc9d514 r237e6bd 6 6 String $devices = '/dev/ttyAMA0', 7 7 Boolean $network_access = false, 8 Boolean $poll_on_startup = false, 8 9 ) 9 10 inherits gnuboat_gpsd … … 15 16 } 16 17 18 17 19 if(!$network_access) 18 20 { 19 $options = ''21 $options_network = '' 20 22 } 21 23 else 22 24 { 23 $options = '-G'25 $options_network = '-G' 24 26 $listen_stream = '0.0.0.0:2947' 25 27 file{'/etc/systemd/system/gpsd.socket': … … 42 44 } 43 45 46 if($poll_on_startup) 47 { 48 $options_startup = '-n' 49 } 50 else 51 { 52 $options_startup = '' 53 } 44 54 55 $options = [$options_network, $options_startup] 45 56 file{'/etc/default/gpsd': 46 57 ensure => present, -
src/puppetcode/environments/gnuboat/modules/gnuboat_gpsd/templates/gpsd.epp
rfc9d514 r237e6bd 2 2 Boolean $usb_auto, 3 3 String $devices, 4 String$options4 Array $options 5 5 | -%> 6 6 # Default settings for the gpsd init script and the hotplug wrapper. … … 27 27 28 28 # Other options you want to pass to gpsd 29 GPSD_OPTIONS="<%= $options %>"29 GPSD_OPTIONS="<%= $options.join(' ') %>"
Note:
See TracChangeset
for help on using the changeset viewer.
