1
2
3
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
|
# File 'manifests/master/tuning.pp', line 1
class classroom_legacy::master::tuning (
Variant[String, Boolean] $jvm_tuning_profile = $classroom_legacy::params::jvm_tuning_profile,
) inherits classroom_legacy::params {
assert_private('This class should not be called directly')
require classroom_legacy::master::hiera
if $jvm_tuning_profile {
case $jvm_tuning_profile {
'reduced': {
$amq_heap_mb = '256'
$master_Xms = '512m'
$master_Xmx = '1024m'
$puppetdb_Xms = '128m'
$puppetdb_Xmx = '384m'
$console_Xms = '128m'
$console_Xmx = '384m'
$orch_Xms = '128m'
$orch_Xmx = '256m'
$jruby_max_active_instances = 1
$delayed_job_workers = 1
$enable_app_mgmt = 'false'
$enable_orch_service = 'false'
$console_sync_period = 0
}
default : {
fail("Unknown tuning level '${jvm_tuning_profile}', choose one of: 'reduced' or false")
}
}
file { "${classroom_legacy::params::confdir}/hieradata/tuning.yaml":
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('classroom_legacy/hiera/data/tuning.yaml.erb'),
notify => Class['puppet_enterprise::profile::master',
'puppet_enterprise::profile::console',
'puppet_enterprise::profile::orchestrator',
'puppet_enterprise::profile::amq::broker'],
}
}
}
|