we use repository based deployment to install our programs to the target IS instances. A program we created recently uses SFTP connections. The SFTP server und user aliases are defined via the IS console and stored in files located in the config folder of the server. I.e. they do not belong to an IS package but are rather “global” assets for the server.
We need to set up the SFTP aliases on the target servers and would like to do this via repository based deployment. But we’ve never deployed a “global asset” in that manner.
My questions are:
What files do we need to check in in to the VCS and in what folder?
How do we substitute the hosts/users/passwords? We have several target clusters. Each cluster is populated with one deployment. But each cluster has its own credentials and should access different SFTP hosts. Usually, this is dealt with via variable substitution.
How will the deployed alias be merged on the target server? I.e. if I deploy the SFTP alias A and the target server already has an SFTP alias B: what aliases will be present on the target server after the deployment? A and B? Or just A?
What if the server where I define all the aliases (and from which I take the config files and put them to the VCS) has, say, three aliases, but I only want to deploy one of them?
If you have any links to useful docs or tutorials, I’d appreciate it very much. I read the deployer docs, but could not understand how to do it.