summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/packages.pp
blob: 140189a46975dcf5b841591c9a6ca470b33da4f8 (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
# install default packages and remove unwanted packages
class site_config::packages {


  # base set of packages that we want to have installed everywhere
  package { [ 'etckeeper', 'screen', 'less', 'ntp' ]:
    ensure => installed,
  }

  # base set of packages that we want to remove everywhere
  package { [
    'acpi', 'build-essential',
    'cpp', 'cpp-4.6', 'cpp-4.7', 'cpp-4.8', 'cpp-4.9',
    'eject', 'ftp',
    'g++', 'g++-4.6', 'g++-4.7', 'g++-4.8', 'g++-4.9',
    'gcc', 'gcc-4.6', 'gcc-4.7', 'gcc-4.8', 'gcc-4.9',
    'laptop-detect', 'libc6-dev', 'libssl-dev', 'lpr', 'make',
    'pppconfig', 'pppoe', 'pump', 'qstat',
    'samba-common', 'samba-common-bin', 'smbclient',
    'tcl8.5', 'tk8.5', 'os-prober', 'unzip', 'xauth', 'x11-common',
    'x11-utils', 'xterm' ]:
      ensure => purged;
  }

  # leave a few packages installed on local environments
  # vagrant i.e. needs them for mounting shared folders
    if $::site_config::params::environment != 'local' {
    package { [ 'nfs-common', 'nfs-kernel-server', 'rpcbind', 'portmap' ]:
      ensure => purged;
    }
  }
}