Defined Type: cassandra::java::runtimeoption

Defined in:
manifests/java/runtimeoption.pp

Summary

Add a runtime option to the JVM running Cassandra.

Overview

Each instance of this type adds a runtime option to the JVM running Cassandra.

The config class contains a factory for this type which will create instances for each key of cassandra::java::runtime_options.

Examples:

directly created

cassandra::java::runtimeoption { 'prof': }

factory generated

cassandra::java:
  runtime_options:
    check: jni
    prof:

Parameters:

  • value (Optional[Scalar]) (defaults to: undef)

    value to be added to the runtime option



21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/java/runtimeoption.pp', line 21

define cassandra::java::runtimeoption (
  Optional[Scalar] $value = undef,
) {
  $_opt = inline_epp('X<%= $prop -%><% if $value { -%>:<%= $value -%><% } -%>',
    {
      'prop'  => $name,
      'value' => $value,
    }
  )
  cassandra::environment::jvm_option { $_opt: }
}