Puppet Class: profile::python37

Defined in:
modules/profile/manifests/python37.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::python37

Sharable class that makes python3.7 available.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/python37.pp', line 6

class profile::python37 {

    if debian::codename::le('stretch') {
        if ! defined( Apt::Package_from_component['component-pyall'] ) {
            apt::package_from_component { 'component-pyall':
                component => 'component/pyall',
                packages  => ['python3.7', 'libpython3.7']
            }
        }
    } else {
        ensure_packages(['python3.7', 'libpython3.7'])
    }

}