Puppet Class: packages

Defined in:
manifests/init.pp

Overview

Configure taps and automatic upgrades



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
# File 'manifests/init.pp', line 2

class packages {
  require homebrew
  require brewcask
  require sudoers

  sudoers::allowed_command { 'brewcask-pkginstaller':
    command          => '/usr/sbin/installer',
    user             => $::boxen_user,
    require_password => false,
    comment          => 'Allow brewcask to use sudo for installer',
    tags             => ['SETENV'],
    require_exist    => false
  } ->
  homebrew::tap {
    [
      'homebrew/dupes',
      'halyard/formulae',
      'halyard/casks'
    ]:
  } ->
  exec { 'brew upgrade':
    timeout => 0,
    onlyif  => 'brew update | grep Updated'
  } ~>
  exec { 'cask_upgrade':
    timeout     => 0,
    refreshonly => true,
    require     => Class['::dotfiles']
  }
}