0.5
app-cordova
debian/bullseye
debian/jessie
|
Last change
on this file since 9dc44b3 was 8c27e83, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago |
- Added gpsd puppet module
- Adapted the hiera file to install gpsd and epd correctly
|
-
Property mode
set to
100644
|
|
File size:
559 bytes
|
| Line | |
|---|
| 1 | class gnuboat_gpsd::service
|
|---|
| 2 | (
|
|---|
| 3 | Enum['running', 'stopped'] $status = 'running',
|
|---|
| 4 | Boolean $enabled = true,
|
|---|
| 5 | Boolean $usb_auto = true,
|
|---|
| 6 | String $devices = '/dev/ttyAMA0',
|
|---|
| 7 | )
|
|---|
| 8 | inherits gnuboat_gpsd
|
|---|
| 9 | {
|
|---|
| 10 | service{'gpsd':
|
|---|
| 11 | ensure => $status,
|
|---|
| 12 | enable => $enabled,
|
|---|
| 13 | subscribe => Package['gpsd'],
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | file{'/etc/default/gpsd':
|
|---|
| 17 | ensure => present,
|
|---|
| 18 | owner => 'root',
|
|---|
| 19 | group => 'root',
|
|---|
| 20 | mode => '0600',
|
|---|
| 21 | notify => Service['gpsd'],
|
|---|
| 22 | content => epp('gnuboat_gpsd/gpsd.epp',
|
|---|
| 23 | {
|
|---|
| 24 | 'enabled' => $enabled,
|
|---|
| 25 | 'usb_auto' => $usb_auto,
|
|---|
| 26 | 'devices' => $devices,
|
|---|
| 27 | }),
|
|---|
| 28 | }
|
|---|
| 29 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.