source: src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp@ 22f7269

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

Updated puppet config

  • Property mode set to 100644
File size: 1.3 KB
Line 
1class gnuboat_canboat::service
2(
3 String $can_interface = "",
4 String $actisense_primary = "",
5 String $actisense_serial = "",
6 Boolean $monitor = true,
7 Enum['running', 'stopped'] $status = 'running',
8 Boolean $enabled = true,
9)
10inherits gnuboat_canboat
11{
12 service{'n2kd_monitor':
13 ensure => $status,
14 enable => $enabled,
15 subscribe => Package['n2kd-scripts', 'n2kd-bin'],
16 }
17
18
19# file{'/etc/systemd/system':
20# ensure => 'directory',
21# owner => 'root',
22# group => 'root',
23# mode => '0750',
24# }
25
26 file{'/etc/default/n2kd':
27 ensure => present,
28 owner => 'root',
29 group => 'root',
30 mode => '0600',
31 notify => Service['n2kd_monitor'],
32 content => epp('gnuboat_canboat/n2kd.epp',
33 {
34 'can_interface' => $can_interface,
35 'actisense_primary' => $actisense_primary,
36 'monitor' => $monitor,
37 }),
38 }
39
40 if $actisense_serial != '' {
41 file{'/etc/udev/rules.d/99-n2kd-actisense.rules':
42 ensure => present,
43 owner => 'root',
44 group => 'root',
45 mode => '0600',
46 notify => Service['n2kd_monitor'],
47 content => epp('gnuboat_canboat/actisense-udev.epp',
48 {
49 'actisense_primary' => $actisense_primary,
50 'actisense_serial' => $actisense_serial,
51 }),
52 }
53 }
54
55}
Note: See TracBrowser for help on using the repository browser.