Ignore:
Timestamp:
Jul 20, 2016, 10:39:34 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
f336595
Parents:
0272b16
Message:

Fixed several issues

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

Legend:

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

    r0272b16 re82ec64  
    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'
    12 gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat-welcome'
    13 gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat-goodby'
     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'
    1415gnuboat_epd::install::panel: 'v230-g2'
    1516gnuboat_gpsd::service::status: 'running'
  • src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp

    r0272b16 re82ec64  
    33        Enum['running', 'stopped'] $status = 'running',
    44        Boolean $enabled = true,
    5         String $options = '-o allow_other -o default_permissions'
    6         String $mount_point = '/dev/epp',
    7         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',
    88        String $exec_start_post = '', # Could be set to a script to display a welcome screen, after starting epd-fuse service
    99        String $exec_stop_pre = '', # Could be set to a script to display a good by screen, before stopping epd-fuse service
    … …  
    3030#               }),
    3131#       }
    32        
    33         file{'/etc/systemd/system/epd-fuse.service/local.conf':
     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':
    3441                ensure => present,
    3542                owner => 'root',
  • src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.service.epp

    r0272b16 re82ec64  
     1[Unit]
     2Description=A Fuse driver for the Repaper.org EPD
     3After=network.target
     4
    15[Service]
    2 ExecStartPre=/usr/bin/mkdir -p <%= $mount_point %>
     6Type=forking
     7PrivateDevices=no
     8SyslogLevel=err
     9ExecStartPre=/bin/mkdir -p <%= $mount_point %>
    310ExecStart=
    411ExecStart=/usr/sbin/epd_fuse --panel=<%= $display_size %> <%= $options %> <%= $mount_point %>
    5 <% if $exec_start_post { -%>
    6 ExecStartPost=-<%= $exec_start_post %>
     12ExecStop=
     13<% if $exec_stop_pre { -%>
     14ExecStop=-<%= $exec_stop_pre %>
    715<% } -%>
    8 ExecStop=
    9 ExecStop=/usr/bin/umount <%= $mount_point %>
    10 <% if $exec_stop_pre { -%>
    11 ExecStopPre=-<%= $exec_stop_pre %>
    12 <% } -%>
     16ExecStop=/bin/umount <%= $mount_point %>
     17KillSignal=SIGQUIT
     18KillMode=mixed
     19
     20[Install]
     21WantedBy=multi-user.target
  • src/puppetcode/environments/test/modules/gnuboat_lighttpd/manifests/init.pp

    r0272b16 re82ec64  
    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

    r0272b16 re82ec64  
    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.