Defined Type: confluent::java_property

Defined in:
manifests/java_property.pp

Overview

A define to manipulate java properties.

Examples:

Setting a property.

confluent::java_property{'log.dirs':
  ensure      => present,
  path        => '/etc/kafka/server.properties',
  value       => '/var/lib/kafka',
  application => 'kafka'
}

Parameters:

  • ensure (Any) (defaults to: 'present')

    present to add the property. absent to remove the property.

  • value (Any) (defaults to: unset)

    The value to be set.

  • path (Any)

    The path to the file containing the java property.

  • application (Any)

    The application requesting the change. Property names are often duplicated. This ensures a unique resource name



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/java_property.pp', line 14

define confluent::java_property (
  $path,
  $application,
  $ensure='present',
  $value=unset,
) {
  $setting_name = "${application}_${name}"

  ini_setting{ $setting_name:
    ensure  => $ensure,
    path    => $path,
    section => '',
    setting => $name,
    tag     => 'kafka-setting',
    value   => $value
  }
}