Index: src/puppetcode/environments/gnuboat/hiera.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/hiera.yaml	(revision de5d36b282ede3e86d0544197f8154968fe7f76c)
+++ src/puppetcode/environments/gnuboat/hiera.yaml	(revision 8c899f7c7cdd31b6545fb21bec4dbb0d923d3d8b)
@@ -5,6 +5,6 @@
   data_hash: yaml_data
 hierarchy:
-  - name: "Per os"
-    path: "os/%{facts.os.family}.yaml"
+  - name: "Per GNUBoat type"
+    path: "gnuboat/%{facts.gnuboat_type}.yaml"
   - name: "Common"
     path: "common.yaml"
Index: src/puppetcode/environments/gnuboat/hieradata/common.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/hieradata/common.yaml	(revision de5d36b282ede3e86d0544197f8154968fe7f76c)
+++ 	(revision )
@@ -1,76 +1,0 @@
----
-classes:
-  - gnuboat_lighttpd
-  - gnuboat_epd
-  - gnuboat_gpsd
-  - gnuboat_gnuboat
-  - gnuboat_hostapd
-  - gnuboat_canboat
-  - apt
-#  - ntp
-  - chrony
-
-apt::sources:
-  'gnuboat':
-    comment: 'GNUBoat repository'
-    location: 'http://ftp.engsas.de/unstable/gnuboat/'
-    release: 'jessie'
-    repos: 'main'
-    key:
-      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
-      server: 'pgp.mit.edu'
-    include:
-      src: true
-      deb: true
-  'gnuboat-raspbian':
-    comment: 'GNUBoat raspbian repository'
-    location: 'http://ftp.engsas.de/unstable/gnuboat-raspbian/'
-    release: 'jessie'
-    repos: 'main'
-    key:
-      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
-      server: 'pgp.mit.edu'
-    include:
-      src: true
-      deb: true
-apt::pin:
-  'gnuboat':
-    priority        => 100
-    originator      => 'gnuboat-raspbian'
-  'gnuboat-raspbian':
-    priority        => 200
-    originator      => 'gnuboat-raspbian'
-gnuboat_lighttpd::service::status: 'running'
-gnuboat_lighttpd::service::enabled: true
-gnuboat_epd::service::status: 'stopped'
-gnuboat_epd::service::enabled: true
-gnuboat_epd::service::display_size: '2.7'
-gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
-gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
-gnuboat_epd::install::panel: 'v230-g2'
-gnuboat_gpsd::service::status: 'running'
-gnuboat_gpsd::service::enabled: true
-gnuboat_gpsd::service::devices: '/dev/ttyACM0'
-gnuboat_gpsd::service::network_access: true
-gnuboat_gpsd::service::poll_on_startup: true
-gnuboat_gnuboat::service::status: 'running'
-gnuboat_gnuboat::service::enabled: true
-gnuboat_gnuboat::server: true
-gnuboat_gnuboat::webclient: true
-gnuboat_hostapd::config::mac_address: '00:0f:60:0b:18:c1'
-gnuboat_hostapd::config::country_code: 'de'
-gnuboat_canboat::service::can_interface: 'can0'
-gnuboat_canboat::service::actisense_primary: '/dev/actisense_ngt1_serial'
-gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
-gnuboat_canboat::service::monitor: true
-chrony::sync_local_clock: true
-chrony::offline: true
-chrony::refclock:
-  - 'SHM 0  delay 0.5 refid NMEA'
-chrony::serve_ntp: true
-# ntp >= 4.2.8
-#ntp::enable: true
-#ntp::servers:
-#  - '127.127.46.0'
-#ntp::fudge:
-#  - '127.127.46.0 refid GPS'
Index: src/puppetcode/environments/gnuboat/hieradata/gnuboat/device.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/hieradata/gnuboat/device.yaml	(revision 8c899f7c7cdd31b6545fb21bec4dbb0d923d3d8b)
+++ src/puppetcode/environments/gnuboat/hieradata/gnuboat/device.yaml	(revision 8c899f7c7cdd31b6545fb21bec4dbb0d923d3d8b)
@@ -0,0 +1,76 @@
+---
+classes:
+  - gnuboat_lighttpd
+  - gnuboat_epd
+  - gnuboat_gpsd
+  - gnuboat_gnuboat
+  - gnuboat_hostapd
+  - gnuboat_canboat
+  - apt
+#  - ntp
+  - chrony
+
+apt::sources:
+  'gnuboat':
+    comment: 'GNUBoat repository'
+    location: 'http://ftp.engsas.de/unstable/gnuboat/'
+    release: 'jessie'
+    repos: 'main'
+    key:
+      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
+      server: 'pgp.mit.edu'
+    include:
+      src: true
+      deb: true
+  'gnuboat-raspbian':
+    comment: 'GNUBoat raspbian repository'
+    location: 'http://ftp.engsas.de/unstable/gnuboat-raspbian/'
+    release: 'jessie'
+    repos: 'main'
+    key:
+      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
+      server: 'pgp.mit.edu'
+    include:
+      src: true
+      deb: true
+apt::pin:
+  'gnuboat':
+    priority        => 100
+    originator      => 'gnuboat-raspbian'
+  'gnuboat-raspbian':
+    priority        => 200
+    originator      => 'gnuboat-raspbian'
+gnuboat_lighttpd::service::status: 'running'
+gnuboat_lighttpd::service::enabled: true
+gnuboat_epd::service::status: 'stopped'
+gnuboat_epd::service::enabled: true
+gnuboat_epd::service::display_size: '2.7'
+gnuboat_epd::service::exec_start_post: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
+gnuboat_epd::service::exec_stop_pre: '/usr/bin/gnuboat-splashscreen -i /home/pi/gnuboat/src/icon/gnuboat-170.png'
+gnuboat_epd::install::panel: 'v230-g2'
+gnuboat_gpsd::service::status: 'running'
+gnuboat_gpsd::service::enabled: true
+gnuboat_gpsd::service::devices: '/dev/ttyACM0'
+gnuboat_gpsd::service::network_access: true
+gnuboat_gpsd::service::poll_on_startup: true
+gnuboat_gnuboat::service::status: 'running'
+gnuboat_gnuboat::service::enabled: true
+gnuboat_gnuboat::server: true
+gnuboat_gnuboat::webclient: true
+gnuboat_hostapd::config::mac_address: '00:0f:60:0b:18:c1'
+gnuboat_hostapd::config::country_code: 'de'
+gnuboat_canboat::service::can_interface: 'can0'
+gnuboat_canboat::service::actisense_primary: '/dev/actisense_ngt1_serial'
+gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
+gnuboat_canboat::service::monitor: true
+chrony::sync_local_clock: true
+chrony::offline: true
+chrony::refclock:
+  - 'SHM 0  delay 0.5 refid NMEA'
+chrony::serve_ntp: true
+# ntp >= 4.2.8
+#ntp::enable: true
+#ntp::servers:
+#  - '127.127.46.0'
+#ntp::fudge:
+#  - '127.127.46.0 refid GPS'
Index: src/puppetcode/environments/gnuboat/modules/gnuboat_gnuboat/lib/facter/gnuboat_type.rb
===================================================================
--- src/puppetcode/environments/gnuboat/modules/gnuboat_gnuboat/lib/facter/gnuboat_type.rb	(revision 8c899f7c7cdd31b6545fb21bec4dbb0d923d3d8b)
+++ src/puppetcode/environments/gnuboat/modules/gnuboat_gnuboat/lib/facter/gnuboat_type.rb	(revision 8c899f7c7cdd31b6545fb21bec4dbb0d923d3d8b)
@@ -0,0 +1,18 @@
+Facter.add('gnuboat_type', :type = :aggregate) do
+	chunk(:mapservice) do
+		application = []
+		hostname = Facter.value(:hostname)
+		if hostname.include? "gnuboat" and hostname.include? "mapservice"
+			application.push("gnuboat.mapservice")
+		end
+		application
+	end
+        chunk(:device) do
+                application = []
+                hostname = Facter.value(:hostname)
+                if hostname.include? "gnuboat" and hostname.include? "device"
+                        application.push("gnuboat.device")
+                end
+                application
+        end
+end
