Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Properties Override File

You can override properties sent from FlexDeploy by adding a FlexDeployPropertiesOverride.properties override file to the <Agent home>/config folder. There is an example file included with the installation.

The purpose of this file is to not have to store the passwords in FlexDeploy and have them passed over HTTPS. They are only locally on this endpoint.

This properties file uses Java properties file syntax. The key is the code of a property, the value is the value to use when overriding. Let’s take a look at some examples.

FDEBS_APPLICATION_SHORT_NAME=XXHR
FDEBS_SQL_RETRY_COUNT=25

Now when you execute the EBS Plugin against this endpoint, the value of FDEBS_APPLICATION_SHORT_NAME will be XXHR, and the value of FDEBS_SQL_RETRY_COUNT will be 25 no matter what value you set in FlexDeploy itself.

This will work for project properties, but for Target or Integration account properties there is a slightly different syntax. You need to put the code for that Target (or integration) a dot and then the name of the property. Here’s an example:

EBS.FDEBS_DB_PASSWORD=databasepassword
MY_GIT_ACCOUNT.FDGIT_PASSWORD=gitpassword

Now the EBS password for the EBS Target and the git password for MY_GIT_ACCOUNT will be overridden.

setenvoverride File

If a setenvoverride.sh (or setenvoverride.bat) file is included in the <Agent home>/config folder, it will be run before tomcat is started in order to configure some environment variables. The following variables are supported.

Variable

Description

JAVA_HOME

The Java path where Tomcat will be run from. This is distinct from the Java path used in the endpoint configuration. The agent will attempt to derive this value, but sometimes that doesn’t work correctly. You can set it here to override that.

FD_MAX_MEMORY_SIZE

This will set the maximum memory size for the Tomcat server. Will be forwarded as the -Xmx java argument. If none is set defaults to 2048m.

FD_INITIAL_MEMORY_SIZE

This will be set the initial memory size for the Tomcat server. Will be forwarded as the -Xms java argument. If none is set defaults to 512m.

FLEXAGON_FD_JAVA_ARGS

Any extra Java arguments.

Examples

Linux

JAVA_HOME=/u01/java/jdk1.8.0_361
FD_MAX_MEMORY_SIZE=4096m
FD_INITIAL_MEMORY_SIZE=1024m
FLEXAGON_FD_JAVA_ARGS=-Dthis.is.an.argument=test

Windows

set JAVA_HOME=C:\installs\jdk1.8.0_212
set FD_MAX_MEMORY_SIZE=4096m
set FD_INITIAL_MEMORY_SIZE=1024m
set FLEXAGON_FD_JAVA_ARGS=-Dthis.is.an.argument=test
  • No labels