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

class testreduce(
    Boolean $install_node,
){

    if $install_node {
        ensure_packages(['nodejs', 'npm'])
    }

    systemd::sysuser { 'testreduce':
        home_dir => '/srv/testreduce',
    }

    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],
    }
}