Defined Type: testreduce::client

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

Overview

This file provides the definition for instantiating a testreduce client

Parameters

instance_name

Name of the testreduce client service

parsoid_port

Port number on localhost when using Parsoid/JS

Parameters:

  • instance_name (Any)
  • parsoid_port (Stdlib::Port)


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'modules/testreduce/manifests/client.pp', line 11

define testreduce::client(
    $instance_name,
    Stdlib::Port $parsoid_port,
) {
    file { "/etc/testreduce/${instance_name}.config.js":
        content => template("testreduce/${instance_name}.config.js.erb"),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        notify  => Service[$instance_name],
    }

    file { "/lib/systemd/system/${instance_name}.service":
        source => "puppet:///modules/testreduce/${instance_name}.systemd.service",
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        before => Service[$instance_name],
    }

    service { $instance_name:
        ensure => running,
    }
}