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