Changeset 0e5fe65


Ignore:
Timestamp:
Apr 28, 2017, 4:26:42 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
3d4f798
Parents:
f553e71 (diff), a9349cd (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.
Message:

Merge branch 'master' into debian/jessie

Location:
src
Files:
6 added
3 deleted
3 edited
527 moved

Legend:

Unmodified
Added
Removed
  • src/daemon/gnuboat

    rf553e71 r0e5fe65  
    113113  def __init__(self):
    114114    threading.Thread.__init__(self)
    115     self._serverHost = "raspi"
     115    self._serverHost = "127.0.0.1"
    116116    self._serverPort = 2597
    117117    self._timeout = 1.5
  • src/puppetcode/environments/gnuboat/hieradata/common.yaml

    rf553e71 r0e5fe65  
    2222      src: true
    2323      deb: true
     24apt::sources:
     25  'gnuboat-raspbian':
     26    comment: 'GNUBoat repository'
     27    location: 'http://ftp.engsas.de/unstable/gnuboat-raspbian/'
     28    release: 'jessie'
     29    repos: 'main'
     30    pin: '200'
     31    key:
     32      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
     33      server: 'pgp.mit.edu'
     34    include:
     35      src: true
     36      deb: true
    2437gnuboat_lighttpd::service::status: 'running'
    2538gnuboat_lighttpd::service::enabled: true
    … …  
    3346gnuboat_gpsd::service::enabled: true
    3447gnuboat_gpsd::service::devices: '/dev/ttyACM0'
     48gnuboat_gpsd::service::network_access: true
    3549gnuboat_gnuboat::service::status: 'running'
    3650gnuboat_gnuboat::service::enabled: true
    … …  
    3953gnuboat_hostapd::config::interface: 'wlan0'
    4054gnuboat_hostapd::config::country_code: 'de'
    41 gnuboat_canboat::service::actisense_primary: '/dev/ttyUSB0'
     55gnuboat_canboat::service::can_interface: 'can0'
     56gnuboat_canboat::service::actisense_primary: '/dev/actisense_ngt1_serial'
     57gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
    4258gnuboat_canboat::service::monitor: true
    43 gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
  • src/puppetcode/environments/gnuboat/modules/gnuboat_canboat/manifests/service.pp

    rf553e71 r0e5fe65  
    11class gnuboat_canboat::service
    22(
     3        String $can_interface = "",
    34        String $actisense_primary = "",
    45        String $actisense_serial = "",
    … …  
    3132                content => epp('gnuboat_canboat/n2kd.epp',
    3233                {
     34                        'can_interface' => $can_interface,
    3335                        'actisense_primary' => $actisense_primary,
    3436                        'monitor' => $monitor,
  • src/puppetcode/environments/gnuboat/modules/gnuboat_canboat/templates/actisense-udev.epp

    rf553e71 r0e5fe65  
     1<%- |   String $actisense_serial,
     2        String $actisense_primary
     3| -%>
    14SUBSYSTEM=="tty", ACTION=="add", ENV{ID_SERIAL}=="<%= $actisense_serial %>", NAME="<%= $actisense_primary %>"
  • src/puppetcode/environments/gnuboat/modules/gnuboat_epd/templates/epd-fuse.epp

    rf553e71 r0e5fe65  
     1<%- |   String $mount_point,
     2        String $display_size,
     3        String $options
     4| -%>
    15# Options to pass to epd_fuse
    26#EPD_MOUNTPOINT=<%= $mount_point %>
  • src/puppetcode/environments/gnuboat/modules/gnuboat_epd/templates/epd-fuse.service.epp

    rf553e71 r0e5fe65  
     1<%- |   String $mount_point,
     2        String $display_size,
     3        String $options,
     4        String $exec_start_post,
     5        String $exec_stop_pre
     6| -%>
    17[Unit]
    28Description=A Fuse driver for the Repaper.org EPD
    … …  
    1016ExecStart=
    1117ExecStart=/usr/sbin/epd_fuse --panel=<%= $display_size %> <%= $options %> <%= $mount_point %>
     18<% if $exec_start_post != "" { -%>
     19ExecStartPost=-<%= $exec_start_post %>
     20<% } -%>
    1221ExecStop=
    13 <% if $exec_stop_pre { -%>
     22<% if $exec_stop_pre != "" { -%>
    1423ExecStop=-<%= $exec_stop_pre %>
    1524<% } -%>
  • src/puppetcode/environments/gnuboat/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp

    rf553e71 r0e5fe65  
     1<%- |   String $document_root | -%>
    12server.modules = (
    23        "mod_access",
  • src/puppetcode/environments/gnuboat/modules/gnuboat_gpsd/templates/gpsd.epp

    rf553e71 r0e5fe65  
     1<%- |   Boolean $enabled,
     2        Boolean $usb_auto,
     3        String $devices,
     4        String $options
     5| -%>
    16# Default settings for the gpsd init script and the hotplug wrapper.
    27
    … …  
    2227
    2328# Other options you want to pass to gpsd
    24 GPSD_OPTIONS=""
     29GPSD_OPTIONS="<%= $options %>"
  • src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/dnsmasq.conf.epp

    rf553e71 r0e5fe65  
     1<%- |   String $hostip,
     2        String $dhcp_range
     3| -%>
    14listen-address=127.0.0.1,<%= $hostip %>
    25# redirect all dns names to localhost
  • src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hostapd.conf.epp

    rf553e71 r0e5fe65  
     1<%- |   String $interface,
     2        String $hw_mode,
     3        Integer $channel,
     4        Boolean $ieee80211d,
     5        String $country_code,
     6        Boolean $ieee80211n,
     7        Boolean $ieee80211ac,
     8        Boolean $wmm_enabled,
     9        String $ssid,
     10        Enum['1', '2', '3'] $auth_algs,
     11        Integer $wpa,
     12        String $wpa_key_mgmt,
     13        String $rsn_pairwise,
     14        String $wpa_passphrase
     15| -%>
    116interface=<%= $interface %>
    217hw_mode=<%= $hw_mode %>
  • src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hostapd.interface.epp

    rf553e71 r0e5fe65  
     1<%- |   String $interface,
     2        String $hostip,
     3        String $netmask
     4| -%>
    15auto <%= $interface %>
    26iface <%= $interface %> inet static
  • src/puppetcode/environments/gnuboat/modules/gnuboat_hostapd/templates/hosts.epp

    rf553e71 r0e5fe65  
     1<%- |   String $hostname,
     2        String $hostip,
     3        String $domain
     4| -%>
    15127.0.0.1       localhost
    26127.0.0.1       <%= $hostname %>
  • src/puppetcode/hiera.yaml

    rf553e71 r0e5fe65  
    55  - "fqdn/%{facts.fqdn}"
    66  - "os/%{facts.osfamily}"
    7   - common
     7  - "common"
    88:yaml:
    99  :datadir: /etc/puppet/environments/%{::environment}/hieradata
  • src/webapp/webservice/index.php

    rf553e71 r0e5fe65  
    1616    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717*/
    18 
    19 xdebug_start_trace();
    2018
    2119require_once(__DIR__ ."/inc/Config.php");
    … …  
    4543
    4644        $endTime = floor(time() / $interval) * $interval;
    47         $startTime = $endTime - $period;
     45        $startTime = $endTime - $period;
    4846        $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", $startTime, "--end", $endTime));
    4947        // $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", "-". $period, "--end", "start+". $period, "--align-start"));
    … …  
    6866        // transform them into json format
    6967        $i = 0;
    70         $lastTime = -1;
     68        $lastValid = -1;
    7169        $keys = array_keys($data);
    7270        $keyTimeframes = $keys[0];
    … …  
    190188}
    191189
    192 xdebug_stop_trace();
    193 
    194190?>
Note: See TracChangeset for help on using the changeset viewer.