Defined Type: presto::properties
- Defined in:
- modules/presto/manifests/properties.pp
Overview
SPDX-License-Identifier: Apache-2.0 Define: presto::properties
Parameters ==
- title
-
Renders a presto properties file at /etc/presto/$title.properties.
- properites
-
Hash of properties.
- may_contain_passwords
-
If the file will render passwords or not. If yes, 'other' should not be allowed to read.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'modules/presto/manifests/properties.pp', line 14
define presto::properties(
Hash $properties,
String $owner = 'presto',
String $group = 'presto',
Boolean $may_contain_passwords = false,
) {
if $may_contain_passwords {
$file_mode = '0440'
} else {
$file_mode = '0444'
}
file { "/etc/presto/${title}.properties":
content => template('presto/properties.erb'),
mode => $file_mode,
owner => $owner,
group => $group,
}
}
|