summaryrefslogtreecommitdiff
path: root/manifests/raspberrypi.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/raspberrypi.pp')
-rw-r--r--manifests/raspberrypi.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/manifests/raspberrypi.pp b/manifests/raspberrypi.pp
new file mode 100644
index 0000000..b558c8d
--- /dev/null
+++ b/manifests/raspberrypi.pp
@@ -0,0 +1,34 @@
+class profiles::raspberrypi {
+
+ include ::raspberry
+
+ ensure_packages([
+ 'nfs-common',
+ ])
+
+ $serial = $facts['serial']
+
+ mount { '/':
+ ensure => 'defined',
+ atboot => true,
+ fstype => 'nfs4',
+ device => "elrond:/files/raspberry/${serial}",
+ }
+
+ mount { '/boot':
+ ensure => 'defined',
+ atboot => true,
+ fstype => 'nfs4',
+ device => "elrond:/files/tftp/${serial}",
+ }
+
+
+ mount { '/tmp':
+ ensure => 'defined',
+ atboot => true,
+ fstype => 'tmpfs',
+ device => 'none',
+ options => [ 'mode=1777', 'strictatime', 'nosuid', 'nodev', 'size=50%', 'nr_inodes=1m', ].join(',')
+ }
+
+}