Octopus Easy Mode - Tenant Templates
Blog post from Octopus Deploy
In the discussed post, the process of defining tenant template variables within a library variable set is demonstrated, allowing for shared variables across projects in an Octopus environment. The setup involves creating a script project titled "09. Script App with Library Variable Set and Tenant Templates," which includes a library variable set named "Tenant Settings" with a "TenantNamespace" variable. Two tenants, "Tenant A" and "Tenant B," are linked to the project, each contributing their own values to the tenant template variable. The script step is configured to echo these variable values using the syntax "#{TenantNamespace}", and tenanted deployments are mandated for the project. This approach enables projects to utilize tenant-specific values without defining variables individually in each project. The post concludes by suggesting the next step of defining project tenant variables.