Puppet Class: kafka::broker::config
- Defined in:
- manifests/broker/config.pp
Overview
Class kafka::broker::config
This private class is called from kafka::broker to manage the configuration
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 |
# File 'manifests/broker/config.pp', line 5
class kafka::broker::config {
if $caller_module_name != $module_name {
fail("Use of private class ${name} by ${caller_module_name}")
}
$install_dir = "/usr/local/kafka-${kafka::broker::scala_version}-${kafka::broker::version}"
$server_config = merge($kafka::params::broker_config_defaults, $kafka::broker::config)
file { '/usr/local/kafka/config/server.properties':
owner => 'kafka',
group => 'kafka',
mode => '0644',
alias => 'kafka-cfg',
require => [ File['kafka-app-dir'], File['/usr/local/kafka'] ],
content => template('kafka/server.properties.erb')
}
file { '/var/log/kafka':
ensure => directory,
owner => 'kafka',
group => 'kafka'
}
}
|