environment_variable_present
Enforce an environment variable value.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
name | Name of the environment variable. This parameter is required. |
value | Value of the environment variable. This parameter is required. |
Example
method: environment_variable_present
params:
value: VALUE
name: VALUE
Documentation
Force the value of a shell environment variable.
The variable will be written in /etc/environment
. A newly created environment variable
will not be usable by the agent until it is restarted.