Ignore:
Timestamp:
Jul 20, 2016, 2:59:55 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
a250eb4
Parents:
8c27e83
Message:

Adapted gnuboat_epd puppet module to configure the service with custom service file and exec start post and stop pre command

Signed-off-by: Joachim Langenbach <joachim.langenbach@…>

Location:
src/puppetcode/environments/test/modules/gnuboat_epd
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp

    r8c27e83 r2e0a90f  
    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',
    57        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/epd-fuse.service/local.conf':
    1734                ensure => present,
    1835                owner => 'root',
    … …  
    2037                mode => '0600',
    2138                notify => Service['epd-fuse'],
    22                 content => epp('gnuboat_epd/epd-fuse.epp',
     39                content => epp('gnuboat_epd/epd-fuse.service.epp',
    2340                {
     41                        'options' => $options,
     42                        'mount_point' => $mount_point,
    2443                        'display_size' => $display_size,
     44                        'exec_start_post' => $exec_start_post,
     45                        'exec_stop_pre' => $exec_stop_pre,
    2546                }),
    2647        }
  • src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.epp

    r8c27e83 r2e0a90f  
    11# Options to pass to epd_fuse
    2 #EPD_MOUNTPOINT=/dev/epd
     2#EPD_MOUNTPOINT=<%= $mount_point %>
    33EPD_SIZE=<%= display_size %>
    4 EPD_OPTS='-o allow_other -o default_permissions'
     4EPD_OPTS=<%= $options %>
Note: See TracChangeset for help on using the changeset viewer.