source: src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp@ c53f31a

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since c53f31a was 2e0a90f, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

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@…>

  • Property mode set to 100644
File size: 1.3 KB
Line 
1class gnuboat_epd::service
2(
3 Enum['running', 'stopped'] $status = 'running',
4 Boolean $enabled = true,
5 String $options = '-o allow_other -o default_permissions'
6 String $mount_point = '/dev/epp',
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
10)
11inherits gnuboat_epd
12{
13 service{'epd-fuse':
14 ensure => $status,
15 enable => $enabled,
16 subscribe => Package['epd-fuse'],
17 }
18
19
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':
34 ensure => present,
35 owner => 'root',
36 group => 'root',
37 mode => '0600',
38 notify => Service['epd-fuse'],
39 content => epp('gnuboat_epd/epd-fuse.service.epp',
40 {
41 'options' => $options,
42 'mount_point' => $mount_point,
43 'display_size' => $display_size,
44 'exec_start_post' => $exec_start_post,
45 'exec_stop_pre' => $exec_stop_pre,
46 }),
47 }
48}
Note: See TracBrowser for help on using the repository browser.