Puppet Class: r_profile::environment_variable

Defined in:
manifests/environment_variable.pp

Overview

R_profile::Environment_variable

Manage enivronment variables on windows and linux

Parameters:

  • variable

    Varliable to set in the form ‘variable=value`. Arrays accepted

  • variables (Any) (defaults to: hiera("r_profile::environment_variable::variables", []))


6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/environment_variable.pp', line 6

class r_profile::environment_variable(
    $variables = hiera("r_profile::environment_variable::variables", []),
) {

  $_variables = any2array($variables)
  $_variables.each |$variable| {
    environment_variable::variable { $variable:
      ensure => present,
    }
  }
}