Puppet Class: puppet_compiler::packages

Defined in:
modules/puppet_compiler/manifests/packages.pp

Overview

Class puppet_compiler::packages

Installs all the needed packages



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/puppet_compiler/manifests/packages.pp', line 4

class puppet_compiler::packages {

    $java_version = $facts['os']['release']['major'] ? {
        /10/    => '11',
        default => '8',
    }
    require_package(
        'python-yaml', 'python-requests', 'python-jinja2', 'nginx',
        'ruby-httpclient', 'ruby-ldap', 'ruby-rgen', "openjdk-${java_version}-jdk"
    )
    if os_version('debian == buster') {
        # Required to resolve PUP-8715
        require_package('ruby-multi-json')
    }
    # Required to fix PUP-8187
    file {'/usr/lib/ruby/vendor_ruby/puppet/application/master.rb':
        ensure  => present,
        content => file('puppet_compiler/puppet_master_pup-8187.rb.nocheck'),
    }
}