-
Notifications
You must be signed in to change notification settings - Fork 136
Description
As I use sprinkle for more sophisticated deployments I am running into a problem where I need my configuration files to be slightly different for each destination host. The differences are trivial, so using the template rendering would be ideal, however it looks like there is a fundamental problem. The rendering is done once and the same resulting file sent to each server.
Ideally in my template I could have code like this:
...
/path/on/machine/<%= @server_info.name %>/more/path
...
and generate a path that includes the name of the server.
This is related to #95, and probably difficult to support because of the way capistrano works in parallel. However it seems that flexibility in configuration is more valuable than the performance benefits of parallel execution. Though it is not clear to me that it is not possible to concurrently copy different files to each server, but perhaps capistrano doesn't support that.
It occurs to me that perhaps an alternative solution would be to have an installer where the template rendering happens on the destination server using a local templating mechanism. Then I could use hostname, etc in my templates.