Puppet Class: bigtop::hadoop::ssl_config
- Defined in:
- modules/bigtop/manifests/hadoop/ssl_config.pp
Overview
SPDX-License-Identifier: Apache-2.0
Class bigtop::hadoop::ssl_config
Renders ssl-server.xml and ssl-client.xml configs.
Parameters
[*config_directory*]
Full path of the directory under which the xml config
files needs to be stored.
[*ssl_server_config*]
TLS configuration properties for ssl-server.xml.erb.
Default: undef
[*ssl_client_config*]
TLS configuration properties for ssl-client.xml.erb.
Default: undef
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'modules/bigtop/manifests/hadoop/ssl_config.pp', line 20
class bigtop::hadoop::ssl_config (
$config_directory,
$ssl_server_config = undef,
$ssl_client_config = undef,
) {
if $ssl_server_config {
file { "${config_directory}/ssl-server.xml":
owner => 'hdfs',
group => 'hadoop',
mode => '0440',
content => template('bigtop/hadoop/ssl-server.xml.erb'),
}
}
if $ssl_client_config {
file { "${config_directory}/ssl-client.xml":
owner => 'yarn',
group => 'hadoop',
mode => '0444',
content => template('bigtop/hadoop/ssl-client.xml.erb'),
}
}
}
|