Puppet Class: testreduce

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

Overview

SPDX-License-Identifier: Apache-2.0

Class: testreduce

This file provides the testreduce code repository

Parameters:

  • install_node (Boolean)


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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'modules/testreduce/manifests/init.pp', line 6

class testreduce(
    Boolean $install_node,
){

    if $install_node {
        if debian::codename::eq('stretch') {
            fail('Should not be installing nodejs on Debian Stretch.')
        }
        ensure_packages(['nodejs', 'npm'])
    }

    group { 'testreduce':
        ensure => present,
        system => true,
    }

    user { 'testreduce':
        gid        => 'testreduce',
        home       => '/srv/testreduce',
        managehome => false,
        system     => true,
    }

    file { '/var/log/testreduce':
        ensure => directory,
        owner  => 'testreduce',
        group  => 'testreduce',
        mode   => '0755',
    }

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

    git::clone { 'mediawiki/services/parsoid/testreduce':
        owner     => 'root',
        group     => 'wikidev',
        directory => '/srv/testreduce',
        # FIXME: Is this notification required?
        # There can be multiple services that might
        # be instantiated using the code from this
        # repository. The only way to notify all those
        # services would be hardcode all their names here.
        #
        # notify    => Service[$instance_name],
    }
}