Ignore:
Timestamp:
Jul 21, 2016, 8:27:37 AM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
d9af413, fefafdf
Parents:
1d2acb7 (diff), 09adf3e (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:

Pulled upstream

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

Location:
src/puppetcode/environments/test
Files:
4 added
5 edited

Legend:

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

    r1d2acb7 r2cf9b0b  
    44  - gnuboat_epd
    55  - gnuboat_gpsd
     6  - gnuboat_gnuboat
    67
    78gnuboat_lighttpd::status: 'running'
    … …  
    1011gnuboat_epd::service::enabled: true
    1112gnuboat_epd::service::display_size: '2.7'
     13gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
     14gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
    1215gnuboat_epd::install::panel: 'v230-g2'
    1316gnuboat_gpsd::service::status: 'running'
  • src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp

    r1d2acb7 r2cf9b0b  
    33        Enum['running', 'stopped'] $status = 'running',
    44        Boolean $enabled = true,
    5         String $display_size = '2.7'
     5        String $options = '-o allow_other -o default_permissions',
     6        String $mount_point = '/dev/epd',
     7        String $display_size = '2.7',
     8        String $exec_start_post = '', # Could be set to a script to display a welcome screen, after starting epd-fuse service
     9        String $exec_stop_pre = '', # Could be set to a script to display a good by screen, before stopping epd-fuse service
    610)
    711inherits gnuboat_epd
    … …  
    1418
    1519
    16         file{'/etc/default/epd-fuse':
     20#       Only needed by initd script, which is not supported by the debian package right now
     21#       file{'/etc/default/epd-fuse':
     22#               ensure => present,
     23#               owner => 'root',
     24#               group => 'root',
     25#               mode => '0600',
     26#               notify => Service['epd-fuse'],
     27#               content => epp('gnuboat_epd/epd-fuse.epp',
     28#               {
     29#                       'display_size' => $display_size,
     30#               }),
     31#       }
     32
     33        file{'/etc/systemd/system':
     34                ensure => 'directory',
     35                owner => 'root',
     36                group => 'root',
     37                mode => '0750',
     38        }
     39
     40        file{'/etc/systemd/system/epd-fuse.service':
    1741                ensure => present,
    1842                owner => 'root',
    … …  
    2044                mode => '0600',
    2145                notify => Service['epd-fuse'],
    22                 content => epp('gnuboat_epd/epd-fuse.epp',
     46                content => epp('gnuboat_epd/epd-fuse.service.epp',
    2347                {
     48                        'options' => $options,
     49                        'mount_point' => $mount_point,
    2450                        'display_size' => $display_size,
     51                        'exec_start_post' => $exec_start_post,
     52                        'exec_stop_pre' => $exec_stop_pre,
    2553                }),
    2654        }
  • src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.epp

    r1d2acb7 r2cf9b0b  
    11# Options to pass to epd_fuse
    2 #EPD_MOUNTPOINT=/dev/epd
    3 EPD_SIZE=<%= display_size %>
    4 EPD_OPTS='-o allow_other -o default_permissions'
     2#EPD_MOUNTPOINT=<%= $mount_point %>
     3EPD_SIZE=<%= $display_size %>
     4EPD_OPTS=<%= $options %>
  • src/puppetcode/environments/test/modules/gnuboat_lighttpd/manifests/init.pp

    r1d2acb7 r2cf9b0b  
    22(
    33        String $version = 'latest',
     4        Boolean $enable_php = true,
    45)
    56{
    67        contain gnuboat_lighttpd::install
     8        contain gnuboat_lighttpd::config
    79        contain gnuboat_lighttpd::service
    810
    911        Class['gnuboat_lighttpd::install'] ->
     12        Class['gnuboat_lighttpd::config'] ->
    1013        Class['gnuboat_lighttpd::service']
    1114}
  • src/puppetcode/environments/test/modules/gnuboat_lighttpd/manifests/install.pp

    r1d2acb7 r2cf9b0b  
    55                notify => Service['lighttpd'],
    66        }
     7
     8        if $enable_php {
     9                package{'php5-cgi':
     10                        ensure => $version,
     11                }
     12        }
    713}
Note: See TracChangeset for help on using the changeset viewer.