-
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 the UI. Without creating a new build and deploy, one can simply change the LOG_LEVEL on deployboard UI, 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 the value of VARIABLENAME defined on deployboard UI, or with the default if not specified on UI. With the LOG_LEVEL example, use {$TELETRAAN_LOG_LEVEL:WARN} in your scripts or configuration files, and it will be replaced by LOG_LEVEL value on UI, 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.