Hi,
I’ve inherited an Octopus setup and been tasked to makes om changes.
Right now we have a database username per tenant for all our projects.
I’ve been tasked to split this up so we have a database username per tenant per project.
So I created some project variable templates and for now referenced the original database username variable. Now i gets tricky…maybe.
I use the database username variable in config files and they will no longer match when the variable is suddenly called project1.dbusername. So I’m thinking is i possible to set the default value for dbusername to something like…
#{#{ProjectID}.dbusername}
…which would return the value of project1.dbusername or project2.dbusername depending on which project i deployed?
This way everythin would match in the deployment process even though we started using project specifik database username variables.