Puppet Class: puppetdb::server::command_processing
- Inherits:
- puppetdb::params
- Defined in:
- manifests/server/command_processing.pp
Overview
PRIVATE CLASS - do not use directly
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'manifests/server/command_processing.pp', line 2
class puppetdb::server::command_processing (
$command_threads = $puppetdb::params::command_threads,
$concurrent_writes = $puppetdb::params::concurrent_writes,
$store_usage = $puppetdb::params::store_usage,
$temp_usage = $puppetdb::params::temp_usage,
$confdir = $puppetdb::params::confdir,
) inherits puppetdb::params {
$config_ini = "${confdir}/config.ini"
# Set the defaults
Ini_setting {
path => $config_ini,
ensure => 'present',
section => 'command-processing',
require => File[$config_ini],
}
if $command_threads {
ini_setting { 'puppetdb_command_processing_threads':
setting => 'threads',
value => $command_threads,
}
} else {
ini_setting { 'puppetdb_command_processing_threads':
ensure => 'absent',
setting => 'threads',
}
}
if $concurrent_writes {
ini_setting { 'puppetdb_command_processing_concurrent_writes':
setting => 'concurrent-writes',
value => $concurrent_writes,
}
} else {
ini_setting { 'puppetdb_command_processing_concurrent_writes':
ensure => 'absent',
setting => 'concurrent-writes',
}
}
if $store_usage {
ini_setting { 'puppetdb_command_processing_store_usage':
setting => 'store-usage',
value => $store_usage,
}
} else {
ini_setting { 'puppetdb_command_processing_store_usage':
ensure => 'absent',
setting => 'store-usage',
}
}
if $temp_usage {
ini_setting { 'puppetdb_command_processing_temp_usage':
setting => 'temp-usage',
value => $temp_usage,
}
} else {
ini_setting { 'puppetdb_command_processing_temp_usage':
ensure => 'absent',
setting => 'temp-usage',
}
}
}
|