Index: src/puppetcode/environments/test/hieradata/common.yaml
===================================================================
--- src/puppetcode/environments/test/hieradata/common.yaml	(revision 1a9bc4ea68ec0bfc11254f19e4c9af703450f632)
+++ src/puppetcode/environments/test/hieradata/common.yaml	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -6,8 +6,23 @@
   - gnuboat_gnuboat
   - gnuboat_hostapd
+  - gnuboat_canboat
+  - apt
 
-gnuboat_lighttpd::servuce::status: 'running'
+apt::sources:
+  'gnuboat':
+    comment: 'GNUBoat repository'
+    location: 'http://ftp.engsas.de/unstable/gnuboat/'
+    release: 'jessie'
+    repos: 'main'
+    pin: '100'
+    key:
+      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
+      server: 'pgp.mit.edu'
+    include:
+      src: true
+      deb: true
+gnuboat_lighttpd::service::status: 'running'
 gnuboat_lighttpd::service::enabled: true
-gnuboat_epd::service::status: 'running'
+gnuboat_epd::service::status: 'stopped'
 gnuboat_epd::service::enabled: true
 gnuboat_epd::service::display_size: '2.7'
@@ -24,2 +39,5 @@
 gnuboat_hostapd::config::interface: 'wlan0'
 gnuboat_hostapd::config::country_code: 'de'
+gnuboat_canboat::actisense_primary: '/dev/ttyUSB0'
+gnuboat_canboat::monitor: true
+gnuboat_canboat::actisense_serial: 'Actisense_NGT-1_2C88A'
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/files/n2kd_monitor.service
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/files/n2kd_monitor.service	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/files/n2kd_monitor.service	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,15 @@
+[Unit]
+Description=n2kd Monitor service
+After=network.target
+
+[Service]
+Type=forking
+PrivateDevices=no
+SyslogLevel=err
+ExecStart=/usr/bin/n2kd_monitor
+ExecStop=
+KillSignal=SIGQUIT
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/init.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/init.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/init.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,11 @@
+class gnuboat_canboat
+(
+	String $version = 'latest',
+)
+{
+	contain gnuboat_canboat::install
+	contain gnuboat_canboat::service
+
+	Class['gnuboat_canboat::install'] ->
+	Class['gnuboat_canboat::service']
+}
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/install.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/install.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/install.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,15 @@
+class gnuboat_canboat::install
+(
+)
+inherits gnuboat_canboat
+{
+	package{'n2kd-bin':
+		ensure => $version,
+	}
+
+	package{'n2kd-scripts':
+                ensure => $version,
+		notify => Service['n2kd_monitor'],
+		require => Package['n2kd-bin'],
+        }
+}
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,62 @@
+class gnuboat_canboat::service
+(
+	String $actisense_primary = "",
+	String $actisense_serial = "",
+	Boolean $monitor = true,
+	Enum['running', 'stopped'] $status = 'running',
+	Boolean $enabled = true,
+)
+inherits gnuboat_canboat
+{
+	service{'n2kd_monitor':
+		ensure => $status,
+		enable => $enabled,
+		subscribe => Package['n2kd-scripts', 'n2kd-bin'],
+	}
+
+
+#	file{'/etc/systemd/system':
+#		ensure => 'directory',
+#		owner => 'root',
+#		group => 'root',
+#		mode => '0750',
+#	}
+
+	file{'/etc/default/n2kd':
+		ensure => present,
+		owner => 'root',
+		group => 'root',
+		mode => '0600',
+		notify => Service['n2kd_monitor'],
+		content => epp('gnuboat_canboat/n2kd.epp',
+		{
+			'actisense_primary' => $actisense_primary,
+			'monitor' => $monitor,
+		}),
+	}
+
+	file{'/etc/systemd/system/n2kd_monitor.service':
+                ensure => present,
+                owner => 'root',
+                group => 'root',
+                mode => '0600',
+                notify => Service['n2kd_monitor'],
+		source => 'puppet:///modules/gnuboat_canboat/n2kd_monitor.service',
+        }
+
+	if $actisense_serial != '' {
+		file{'/etc/udev/rules.d/99-n2kd-actisense.rules':
+			ensure => present,
+	                owner => 'root',
+        	        group => 'root',
+                	mode => '0600',
+	                notify => Service['n2kd_monitor'],
+        	        content => epp('gnuboat_canboat/actisense-udev.epp',
+                	{
+	                        'actisense_primary' => $actisense_primary,
+        	                'actisense_serial' => $actisense_serial,
+                	}),
+	        }
+	}
+	
+}
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/templates/actisense-udev.epp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/templates/actisense-udev.epp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/templates/actisense-udev.epp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,1 @@
+SUBSYSTEM=="tty", ACTION=="add", ENV{ID_SERIAL}=="<%= $actisense_serial %>", NAME="<%= $actisense_primary %>"
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/templates/n2kd.epp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/templates/n2kd.epp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/templates/n2kd.epp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -0,0 +1,2 @@
+ACTISENSE_PRIMARY=<%= $actisense_primary %>
+MONITOR=<%= $monitor %>
Index: src/puppetcode/environments/test/modules/gnuboat_epd/manifests/install.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_epd/manifests/install.pp	(revision 1a9bc4ea68ec0bfc11254f19e4c9af703450f632)
+++ src/puppetcode/environments/test/modules/gnuboat_epd/manifests/install.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -5,23 +5,8 @@
 inherits gnuboat_epd
 {
-	include apt
-
-	apt::source{'gnuboatapt':
-		comment => 'This is the raspbian repository for GNUBoat',
-		location => 'http://ftp.engsas.de/unstable/gnuboat/',
-		release => 'jessie',
-		repos => 'main',
-		pin => '-10',
-		include => {
-			'src' => true,
-			'deb' => true,
-		},
-	}
-
 	package{'epd-fuse':
 		name => "epd-fuse-${panel}",
 		ensure => $version,
 		notify => Service['epd-fuse'],
-		require => Apt::Source['gnuboatapt'],
 	}
 
Index: src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp	(revision 1a9bc4ea68ec0bfc11254f19e4c9af703450f632)
+++ src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -5,5 +5,5 @@
 inherits gnuboat_gnuboat
 {
-	file{'/etc/lighttpd':
+	file{'/etc/lighttpd/lighttpd.conf':
 		ensure => 'present',
 		owner => 'root',
Index: src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/install.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/install.pp	(revision 1a9bc4ea68ec0bfc11254f19e4c9af703450f632)
+++ src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/install.pp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -1,23 +1,8 @@
 class gnuboat_gnuboat::install() inherits gnuboat_gnuboat
 {
-	include apt
-
-#        apt::source{'gnuboatapt':
-#                comment => 'This is the raspbian repository for GNUBoat',
-#                location => 'http://ftp.engsas.de/unstable/gnuboat/',
-#                release => 'jessie',
-#                repos => 'main',
-#                pin => '-10',
-#                include => {
-#                        'src' => true,
-#                        'deb' => true,
-#                },
-#        }
-
 	if $server {
 	        package{'gnuboat-server':
         	        ensure => $version,
                 	notify => Service['gnuboat'],
-	                require => Apt::Source['gnuboatapt'],
         	}
 	}
@@ -26,5 +11,4 @@
 		package{'gnuboat-webclient':
         	        ensure => $version,
-                	require => Apt::Source['gnuboatapt'],
 	        }
 	}
Index: src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp	(revision 1a9bc4ea68ec0bfc11254f19e4c9af703450f632)
+++ src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp	(revision 368c2b803b6ecbb75d66380b15804cab97fca265)
@@ -7,5 +7,5 @@
 )
 
-server.document-root        = "<%= document_root %>"
+server.document-root        = "<%= $document_root %>"
 server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
 server.errorlog             = "/var/log/lighttpd/error.log"
