We have a reasonable-sized Team City installation and currently I am planning to add another 25 agents, 5 agents per machine. So far I was doing the installation manually:
- Log into the server
- Download and run
agentInstaller.exe
, add the agent number to the name - Open a command prompt as administrator and run the script to install the service (given a service name with the agent number appended)
- Open the
Services
configuration settings, change the user that the service is running as and start the service
Is there a simple way to script as many of these steps as possible? Ideally I would like to log into the box, and run a single script with agent number to do steps 2-4.
How about making Chocolatey do this:
It seems that you still have to open firewall ports, though. This is from Asger Hallas's comment in the link above:
The installation of Chocolatey itself is a PowerShell one-liner, too:
I have yet to find a way for a scripted installation of the TeamCity server, though.