summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 22:44:18 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 22:44:18 +0200
commit1d930f4a365bc28b9d20157c414d2e617a0b0391 (patch)
tree7171f12b70ce3387c97250ac62df4c8ebecb5da0
parentRevert "Add githook for updating description from metadata.json." (diff)
downloadprofiles-raspberry.tar.gz
profiles-raspberry.tar.xz
Add raspberrypi.raspberry
-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(',')
+ }
+
+}