No Results
System Variables

System Variables are about accessing data. They differ from Secured Variables in several ways:

  1. They are defined via [Install_Home]/conf/custom.properties and [Install_Home]/conf/local.properties, and local.properties is not included in backups / restores. As of 4.3.6, they can also be defined via API and CLI (see below). Additionally, defining them in the UI is introduced in the 4.3.7 version (see below).
  2. Their values are not configurable via the admin user interface.  It is the administrator’s responsibility to put the required local.properties file in place when a new server is configured (for versions prior to 4.3.7).
  3. Secured Variables are not exposed as Page Variables. They are used to restrict data, not to add interactivity.

Usage

System Variables are typically used in connections and feeds to help isolate system-specific environment settings. Administrators can set up variants of local.properties for Dev, QA, and Prod systems. They can be used directly when a Connection, Feed, or Transform property supports Expressions, and they can also be used inside of a Secured Variable or Credential when its default value is configured as an Expression rather than a Static Value.

Defining System Variables

The recommended way to set up System Variables is to declare the available System Variables in [Install_Home]/conf/custom.properties and override them as needed via [Install_Home]/conf/local.properties:

There are two types of System Variables: Standard sysVar and Encrypted encSysVar. The first ‘sysVar’ variable type is not encrypted, and the administrator can see the value when inserting it into an Expression. The second ‘encSysVar’ variable type is encrypted. When encrypted encSysVars are accessed, their values in the properties file will be encrypted if necessary. The encSysVar’s value will be displayed as a standard ‘****’ when inserting it into an Expression.

Example Steps:

  • Edit [Install_Home]/conf/custom.properties
  • Add a standard System Variable named eventDbHost with a value of ‘localhost’:

sysVar.eventDbHost=localhost

  • Add an encrypted System Variable named eventDbUser with a value of ‘anonymous’:

encSysVar.eventDbUser=anonymous

  • Add an encrypted System Variable named eventDbPass with a value of ‘changeme’:

encSysVar.eventDbPass=changeme

  • The system will need to be restarted for these named variables to be scanned.

 

Creating/Modifying System Variables via API and CLI

edgeCore Version: 4.3.6

 

Creating System Variables in the UI

edgeCore version 4.3.7

To create system variables in the UI, do the following:

  1. Go to Provision DefaultsSystem Variables.
  2. Click + in the bottom left corner.
    A pop-up is displayed.
  3. In the pop-up, do the following:
    a) In Variable Name, enter a name for the variable.
    b) In Value, enter a value for the variable.
    c) Select the Encrypt Value checkbox to encrypt the value prior to storage.
    d) Select the Restart Server checkbox to restart the server after updating the value. If you do not want to restart the server right away, you can do so later. Restarting the server is required for updates to go into effect.
  4. Save your changes.
    – If you have selected the Restart Server checkbox, the server will be restarted, and you will see the newly created system variable.

    – If you have not selected the Restart Server checkbox, you will be notified that there are pending changes and that you need to restart the server to update them. In this case, the Restart Server button will be displayed in the bottom left corner.

Every system variable you create will be stored in the local.properties configuration file.

Editing System Variables in the UI

To edit a system variable:

  1. Click the pencil icon in the bottom left corner.
    A pop-up containing information about the variable is displayed. Please note that you cannot change the Variable Name in the UI. You can do so in the local.properties configuration file.
  2. Save your changes.
    – If you have selected the Restart Server checkbox, the server will be restarted, and the system variable will be updated.
    – If you have not selected the Restart Server checkbox, you will be notified that there are pending changes and that you need to restart the server to update them. In this case, the Restart Server button will be displayed in the bottom left corner.

Deleting System Variables

To delete a system variable, remove it from the local.properties configuration file and restart the server.


Terms | Privacy