Puppet Class: archlinux_macbookretina

Defined in:
manifests/init.pp

Overview

Include all working archlinux_macbookretina::* classes. Ensure that this is running on a supported hardware product, and fail otherwise.



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
35
36
37
38
39
# File 'manifests/init.pp', line 5

class archlinux_macbookretina {

  # make sure we're on Arch, otherwise fail
  if $::osfamily != 'Archlinux' {
    fail("${::operatingsystem} not supported")
  }

  case $::productname {
    'MacBookPro10,1': { $cant_have_an_empty_block = true }
    'MacBookPro11,4': { $cant_have_an_empty_block = true }
    default: {
      fail("${::productname} is not a supported hardware productname")
    }
  }

  # Install proprietary nvidia driver for nvidia graphics
  class {'archlinux_macbookretina::videodriver':
    driver => 'nvidia', # default
  }

  # Install driver for Broadcom wireless, iw and wpa_supplicant
  include archlinux_macbookretina::wireless

  # setup the apple kernel module for the mac keyboard
  include archlinux_macbookretina::mac_keyboard

  # SSD tuning
  include archlinux_macbookretina::ssd

  # fan control
  include archlinux_macbookretina::macfanctld

  # touchpad setup
  include archlinux_macbookretina::touchpad
}