summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/packages/uninstall.pp
blob: 12f527d9a6334e509f7dd90fe436000904c1a03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Uninstall build-essential and compilers, unless they have been explicitly installed elsewhere.
#
class site_config::packages::uninstall {
  tag 'leap_base'

  # generally, dev packages are needed for installing ruby gems with native extensions.
  # (nickserver, webapp, etc)

  if !defined(Package['build-essential']) {
    package {
      ['build-essential', 'g++', 'g++-4.7', 'gcc', 'gcc-4.6', 'gcc-4.7', 'cpp', 'cpp-4.6', 'cpp-4.7', 'libc6-dev']:
        ensure => purged
    }
  }
}