From 1d930f4a365bc28b9d20157c414d2e617a0b0391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 12 Oct 2022 22:44:18 +0200 Subject: Add raspberrypi. --- manifests/raspberrypi.pp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 manifests/raspberrypi.pp 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(',') + } + +} -- cgit v1.2.3