Puppet Class: cergen

Defined in:
modules/cergen/manifests/init.pp

Overview

Class cergen

Installs cergen package.



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

class cergen {

    if os_version('debian == buster') {
        apt::package_from_component { 'cergen':
            component => 'component/cergen',
            packages  => ['cergen']
        }

        # This is needed by networkx, ideally this would be fixed in
        # the cergen package itself
        package { 'python3-lib2to3':
            ensure => 'present',
        }
    } else {
        package { 'cergen':
            ensure => 'present',
        }
    }

    file { '/etc/cergen':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0750',
    }
}