summaryrefslogtreecommitdiff
path: root/manifests/raspberrypi.pp
blob: b558c8d1085fcb27a2e0a03a7869be901bed3c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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(',')
  }

}