Puppet Class: profile::changeprop

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

Overview

Profile class for changeprop

filtertags: labs-project-deployment-prep

Parameters:

  • restbase_uri (Any) (defaults to: hiera('profile::changeprop::restbase_uri'))
  • purge_host (Any) (defaults to: hiera('profile::changeprop::purge_host'))
  • purge_port (Any) (defaults to: hiera('profile::changeprop::purge_port'))
  • ores_uris (Any) (defaults to: hiera('profile::changeprop::ores_uris'))
  • eventbus_uri (Any) (defaults to: hiera('profile::changeprop::eventbus_uri'))
  • kafka_msg_max_bytes (Any) (defaults to: hiera('kafka_message_max_bytes', 1048576))


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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'modules/profile/manifests/changeprop.pp', line 4

class profile::changeprop(
    $restbase_uri = hiera('profile::changeprop::restbase_uri'),
    $purge_host  = hiera('profile::changeprop::purge_host'),
    $purge_port  = hiera('profile::changeprop::purge_port'),
    $ores_uris  = hiera('profile::changeprop::ores_uris'),
    $eventbus_uri = hiera('profile::changeprop::eventbus_uri'),
    $kafka_msg_max_bytes = hiera('kafka_message_max_bytes', 1048576),
) {

    include ::passwords::redis
    require ::profile::changeprop::packages

    $kafka_config = kafka_config('main')
    $broker_list = $kafka_config['brokers']['string']
    $redis_path = "/var/run/nutcracker/redis_${::site}.sock"
    $redis_pass = $::passwords::redis::main_password

    service::node { 'changeprop':
        enable            => true,
        port              => 7272,
        healthcheck_url   => '',
        has_spec          => true,
        deployment        => 'scap3',
        deployment_config => true,
        deployment_vars   => {
            broker_list     => $broker_list,
            restbase_uri    => $restbase_uri,
            ores_uris       => $ores_uris,
            eventbus_uri    => $eventbus_uri,
            purge_host      => $purge_host,
            purge_port      => $purge_port,
            site            => $::site,
            redis_path      => $redis_path,
            redis_pass      => $redis_pass,
            kafka_max_bytes => $kafka_msg_max_bytes,
        },
        auto_refresh      => false,
        init_restart      => false,
        environment       => {
            'UV_THREADPOOL_SIZE' => 128,
        },
    }
}