Table of Contents | ||||
---|---|---|---|---|
|
...
Field Name | Required | Description | ||
---|---|---|---|---|
Endpoint Name | Yes | The name of the Endpoint. | ||
Description | No | An optional description for the Endpoint. | ||
Active | Yes | Whether or not the endpoint is active in the system. Defaults to "Yes". | ||
Connection Type | Yes | The connection type used for connection to the Endpoint. When plugin process is invoked, it will source .bashrc file but not .bash_profile and .profile. Make sure to not include echo statements in .bashrc file as that will cause failures. If needed use Source Script to adjust execution environment. If your bashrc contains the following block, then you will need to place any additional exports export or sourcing source statements before it.
| ||
Operating System | Yes | Unix or Windows | ||
Address | Yes | The DNS name or IP address of the Endpoint. | ||
Port | Yes | The SSH port of the Endpoint (typically port 22). | ||
Base Directory | Yes | A working directory on the Endpoint used by FlexDeploy. ~ is not supported here. See Permissions information below for details on how to create this folder automatically (Recommended). For example, /app/flexdeploy. If you have two FlexDeploy installations that may connect to same Endpoint, you must use unique folders for both FlexDeploy Servers. In most cases, separate FlexDeploy is installed to perform testing of FlexDeploy patches, which may connect to same Endpoint, in which case you can use different folder like /app/flexdeploytest and /app/flexdeploy. Working directory under /var/tmp or /tmp folder is not recommended as administrators generally have cron jobs to purge files based on age and that will cause issues when plugin files are deleted. For example, Error: Could not find or load main class flexagon.fd.core.plugin.ExternalPluginServer will be encountered when plugin lib files are deleted. Permissions
| ||
JDK Home | Yes | The JDK Home directory on the Endpoint. For example, /usr. FlexDeploy will look for /bin/java under specified JDK Home folder. Not required if the Endpoint is a Docker Host. Often a JRE will suffice, unless you are compiling java code with it. @Since 8.0.0.2, this can contain $ and ~. Any variables referenced must be setup by the .bashrc file. The endpoint source script will not have been executed prior to setting the Java Home variables. | ||
Source Script | No | An optional script executed right before plugins are executed on the endpoint. Script can source some other environment script as well. Script should be Unix shell or Windows bat commands depending on type of Endpoint. If using Windows Cygwin SSH then script should be written as Unix shell. Some usages of this script include sourcing an environment file (. $HOME/mfile.env) or exporting a variable (export FLEXAGON_FD_PLUGIN_JAVA_ARGS="-Xmx1024m -Djava.io.tmpdir=/var/tmp"). Variables exported here will become available to plugin executions on this endpoint. | ||
Max Concurrent Executions | No | Sets a limit on the number of concurrent executions on this endpoint. If not specified, the default of 5 will be used. | ||
Transfer Protocol | Yes | Protocol/Tool to use to transfer files from FlexDeploy host to endpoint and vice-versa. Options available are:
To use the rsync option, FlexDeploy should be running on a UNIX machine, the endpoint can be UNIX or Windows (Cygwin) and rsync needs to be installed on BOTH, FlexDeploy host and endpoint and expect needs to be installed on the FlexDeploy host. | ||
Authentication Type | Yes | Mechanism to use for authentication. The Password, Private Key File, and Passphrase are displayed based on selected type. Supports:
| ||
Username | Yes | The user account on the Endpoint to connect with. All executions via this endpoint will run as this user. | ||
Password | No | The password for the Username. Either password or Private Key File is required. | ||
Private Key File | No | Fully-qualified path of the SSH private key file on FlexDeploy server. Either Private Key File or Password is required. ~ is not supported here. | ||
Passphrase | No | An optional passphrase used when the private key was generated. Only valid if a Private Key File is specified. | ||
Privilege Escalation Type | No | An optional type of privilege escalation to use after establishing connection to the endpoint. Supports:
| ||
Privilege Escalation Syntax | No | An optional syntax which wraps all commands to be executed on the endpoint. You can use property replacement syntax i.e. $${{RUN_AS_USER_NAME}}, with this input and the variable will be replaced with the appropriate value at runtime. The following variables are available:
Important notes:
| ||
Run as (user) | No | An optional user to run as after establishing connection to the endpoint when working with Unix OS. For example, flexdeploy See below for necessary setup information for type of Privilege Escalation Type: sudo:
pbrun:
|
...
To inactivate an endpoint click the Active link on the desired Endpoint, and it will toggle to Inactive. This will hide that Endpoint after leaving the screen, until the Active checkbox is unchecked. To reactivate an Endpoint, click the Inactive link and it will toggle back to Active. This endpoint is now active in the system again and ready for use.
...
It is typical to use the default file name and location to store the private key (which is in the .ssh subfolder of the user's home directory). You can optionally secure the private key file with a passphrase. It is an SSH requirement that the private key be readable only by its owner (e.g. oracle in the example above). So you must change the permissions accordingly (e.g. chmod 600 /home/oracle/.ssh/id_rsa). You will receive an error at connection time similar to the following if you omit this step.
Permissions 0777 for '/home/oracle/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others otherwise private key will be ignored.
Info |
---|
The /home/oracle/.ssh folder on the endpoint must have drw------- permissions. For example,
|
...