-
Notifications
You must be signed in to change notification settings - Fork 250
Setting up script configs
A set of customized variables defined as 'Script Config' in the deployboard UI will be made available to your Deploy Scripts. It gives Teletraan server extra power to control deploy agents and the services running on the hosts. For example, one can define LOG_LEVEL in the Script Config section on deployboard. Without creating a new build and deploy, one can simply change the LOG_LEVEL on deployboard, restart the service fleet, and the service will start to generate different level logging.
Any files under teletraan directory will be examined by Deploy Agent in STAGING step. Any variables in these files in the form of {$TELETRAAN_VARIABLENAME:default} will be replaced by Script Config in the deployboard UI, or if missing then use the default value. This feature is important when these scripts will be not be called by Deploy Agent. With the LOG_LEVEL example, use {$TELETRAAN_LOG_LEVEL:WARN} in your scripts or configuration files, and it will be replaced by UI configured LOG_LEVEL value, or INFO if not defined in the UI.
-
Navigate to your environment config page. Click 'Configure'.
-
Click 'Script Config'.
-
Fill in your custom variable name in the 'name' field and its value in the 'value' field.
-
Click 'Add' and then 'Save' to save your custom variables.