Ignore:
Timestamp:
Aug 1, 2017, 3:39:05 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
cd0f9cc
Parents:
fc9d514
Message:

Switched from ntpd to chrony, to use gpsd as a time server source

Location:
src/puppetcode/environments/gnuboat
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/gnuboat/hieradata/common.yaml

    rfc9d514 r237e6bd  
    88  - gnuboat_canboat
    99  - apt
    10   - ntp
     10#  - ntp
     11  - chrony
    1112
    1213apt::sources:
    … …  
    2223      src: true
    2324      deb: true
    24 apt::sources:
    2525  'gnuboat-raspbian':
    2626    comment: 'GNUBoat raspbian repository'
    … …  
    5353gnuboat_gpsd::service::devices: '/dev/ttyACM0'
    5454gnuboat_gpsd::service::network_access: true
     55gnuboat_gpsd::service::poll_on_startup: true
    5556gnuboat_gnuboat::service::status: 'running'
    5657gnuboat_gnuboat::service::enabled: true
    … …  
    6364gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
    6465gnuboat_canboat::service::monitor: true
    65 ntp::enable: true
    66 ntp::servers:
    67   - '127.127.28.0'
    68 ntp::fudge:
    69   - '127.127.28.0 refid GPS'
     66chrony::sync_local_clock: true
     67chrony::offline: true
     68chrony::refclock:
     69  - 'SHM 0  delay 0.5 refid NMEA'
     70chrony::serve_ntp: true
    7071# ntp >= 4.2.8
     72#ntp::enable: true
    7173#ntp::servers:
    7274#  - '127.127.46.0'
  • src/puppetcode/environments/gnuboat/modules/gnuboat_gpsd/manifests/service.pp

    rfc9d514 r237e6bd  
    66        String $devices = '/dev/ttyAMA0',
    77        Boolean $network_access = false,
     8        Boolean $poll_on_startup = false,
    89)
    910inherits gnuboat_gpsd
    … …  
    1516        }
    1617
     18       
    1719        if(!$network_access)
    1820        {
    19                 $options = ''
     21                $options_network = ''
    2022        }
    2123        else
    2224        {
    23                 $options = '-G'
     25                $options_network = '-G'
    2426                $listen_stream = '0.0.0.0:2947'
    2527                file{'/etc/systemd/system/gpsd.socket':
    … …  
    4244        }
    4345
     46        if($poll_on_startup)
     47        {
     48                $options_startup = '-n'
     49        }
     50        else
     51        {
     52                $options_startup = ''
     53        }
    4454
     55        $options = [$options_network, $options_startup]
    4556        file{'/etc/default/gpsd':
    4657                ensure => present,
  • src/puppetcode/environments/gnuboat/modules/gnuboat_gpsd/templates/gpsd.epp

    rfc9d514 r237e6bd  
    22        Boolean $usb_auto,
    33        String $devices,
    4         String $options
     4        Array $options
    55| -%>
    66# Default settings for the gpsd init script and the hotplug wrapper.
    … …  
    2727
    2828# Other options you want to pass to gpsd
    29 GPSD_OPTIONS="<%= $options %>"
     29GPSD_OPTIONS="<%= $options.join(' ') %>"
Note: See TracChangeset for help on using the changeset viewer.