Changeset d82bcf6 for src/puppetcode


Ignore:
Timestamp:
Apr 28, 2017, 2:27:33 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
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.
Message:

Merge branch 'master' of ​https://svn.falaba.de/gnuboat

Location:
src/puppetcode/environments/test
Files:
1 added
1 deleted
13 edited

Legend:

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

    r06c0abb rd82bcf6  
    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/test/modules/gnuboat_canboat/manifests/service.pp

    r06c0abb rd82bcf6  
    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/test/modules/gnuboat_canboat/templates/actisense-udev.epp

    r06c0abb rd82bcf6  
     1<%- |   String $actisense_serial,
     2        String $actisense_primary
     3| -%>
    14SUBSYSTEM=="tty", ACTION=="add", ENV{ID_SERIAL}=="<%= $actisense_serial %>", NAME="<%= $actisense_primary %>"
  • src/puppetcode/environments/test/modules/gnuboat_canboat/templates/n2kd.epp

    r06c0abb rd82bcf6  
     1<%- |   String $can_interface,
     2        String $actisense_primary,
     3        Boolean $monitor
     4| -%>
     5<% if $can_interface != "" { -%>
     6CAN_INTERFACE=<%= $can_interface %>
     7<% } -%>
    18ACTISENSE_PRIMARY=<%= $actisense_primary %>
    29MONITOR=<%= $monitor %>
  • src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.epp

    r06c0abb rd82bcf6  
     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/test/modules/gnuboat_epd/templates/epd-fuse.service.epp

    r06c0abb rd82bcf6  
     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/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp

    r06c0abb rd82bcf6  
     1<%- |   String $document_root | -%>
    12server.modules = (
    23        "mod_access",
  • src/puppetcode/environments/test/modules/gnuboat_gpsd/manifests/service.pp

    r06c0abb rd82bcf6  
    55        Boolean $usb_auto = true,
    66        String $devices = '/dev/ttyAMA0',
     7        Boolean $network_access = false,
    78)
    89inherits gnuboat_gpsd
    … …  
    1314                subscribe => Package['gpsd'],
    1415        }
     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
    1544
    1645        file{'/etc/default/gpsd':
    … …  
    2554                        'usb_auto' => $usb_auto,
    2655                        'devices' => $devices,
     56                        'options' => $options,
    2757                }),
    2858        }
     59
    2960}
  • 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| -%>
    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/test/modules/gnuboat_hostapd/templates/dnsmasq.conf.epp

    r06c0abb rd82bcf6  
     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/test/modules/gnuboat_hostapd/templates/hostapd.conf.epp

    r06c0abb rd82bcf6  
     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/test/modules/gnuboat_hostapd/templates/hostapd.interface.epp

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

    r06c0abb rd82bcf6  
     1<%- |   String $hostname,
     2        String $hostip,
     3        String $domain
     4| -%>
    15127.0.0.1       localhost
    26127.0.0.1       <%= $hostname %>
Note: See TracChangeset for help on using the changeset viewer.