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

debian/bullseye debian/jessie
Last change on this file since 4f03a27 was e82ec64, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Fixed several issues

  • Property mode set to 100644
File size: 1.4 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/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
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':
34 ensure => 'directory',
35 owner => 'root',
36 group => 'root',
37 mode => '0750',
38 }
39
40 file{'/etc/systemd/system/epd-fuse.service':
41 ensure => present,
42 owner => 'root',
43 group => 'root',
44 mode => '0600',
45 notify => Service['epd-fuse'],
46 content => epp('gnuboat_epd/epd-fuse.service.epp',
47 {
48 'options' => $options,
49 'mount_point' => $mount_point,
50 'display_size' => $display_size,
51 'exec_start_post' => $exec_start_post,
52 'exec_stop_pre' => $exec_stop_pre,
53 }),
54 }
55}
Note: See TracBrowser for help on using the repository browser.