Defined Type: tomcat::config::properties::property

Defined in:
manifests/config/properties/property.pp

Summary

Manage additional entries for the properties file, typically catalina.properties

Overview

Parameters:

  • catalina_base (Stdlib::Absolutepath)

    The catalina base of the catalina.properties file. The resource will manage the values in ‘$catalina_base/conf/catalina.properties` . Required

  • value (String[1])

    The value of the property. Required

  • property (String[1]) (defaults to: $name)

    The name of the property. ‘$name`.



10
11
12
13
14
15
16
17
18
19
# File 'manifests/config/properties/property.pp', line 10

define tomcat::config::properties::property (
  Stdlib::Absolutepath $catalina_base,
  String[1] $value,
  String[1] $property = $name,
) {
  concat::fragment { "${catalina_base}/conf/catalina.properties property ${property}":
    target  => "${catalina_base}/conf/catalina.properties",
    content => "${property}=${value}",
  }
}