We have a number of identical machines in a load balanced setup. Each machine has a number of roles with a corresponding number number of deployed projects. Currently, when we add a new machine to the setup we have to manually add each role and deploy the right releases of the projects to the machine.
Is there an easier way to do this? or should I add suggestion?
Thanks for reaching out. You can add roles to a machine by using the Octopus API. This link contains an example that uses the Octoposh module to add/remove roles from Tentacles using from Powershell: https://github.com/Dalmirog/OctoPosh/wiki/Modifying-Resources . The module uses the Octopus API in the background.
Regarding the releases for your projects, You can use the Octo.exe
deploy-release command with the parameter
--specificmachines to deploy a specific release only to a handful of machines (the ones you just added to the pool)
Hope that helps!