Hey Chad,

you were spot on - thank you!
Using setting the value of *agent.auto.register.hostname* with 
auto-registration worked like a charm, however I had to delete the existing 
guid.txt & token files to allow the auto-registration to kick-in once the 
service is restarted!

Thank you for your help!

Emil

On Wednesday, 18 August 2021 at 12:27:16 UTC Chad Wilson wrote:

> I believe this should be possible when using agent auto-registration and 
> *agent.auto.register.hostname*: 
> https://docs.gocd.org/current/advanced_usage/agent_auto_register.html
>
> -Chad
>
> On Wed, Aug 18, 2021 at 7:07 PM Emil <[email protected]> wrote:
>
>> Thanks for the notes - I had the same idea too and saved it for my 
>> reference.
>>
>> However, it was easier to download the agent zip install 
>> <https://www.gocd.org/download/#zip> and to use the batch scripts in the 
>> bin/ folder to install the windows service after modifying the 
>> properties in wrapper-config/wrapper.conf 
>>
>> One problem I have now is that on the GoCD agents page the agent name for 
>> all agents is identical - the value is the machine hostname instead the 
>> windows service name! Any idea how to set the agent name displayed on the 
>> agents page?
>>
>> Thanks,
>> Emil
>>
>> On Tuesday, 17 August 2021 at 16:44:42 UTC [email protected] wrote:
>>
>>> I recently setup additional agents as Windows services. Here are my 
>>> rough notes:
>>>
>>>  * Copy "C:\Program Files (x86)\Go Agent" to "C:\Program Files (x86)\Go 
>>> Agent2"
>>>  * Delete files in 'config' folder (guid.txt, token, etc)
>>>  * Edit 'wrapper-config/wrapper.conf' to match new service name 
>>> (wrapper.displayname, wrapper.description)
>>>  * sc create GoAgent2 binPath= "C:\Program Files (x86)\Go 
>>> Agent2\wrapper\wrapper-windows-x86-64.exe" displayName= "Go Agent2" start= 
>>> auto
>>>  * Go to Control Panel -> Services and set the logon account for GoAgent2
>>>  * Use Regedit
>>>   * copy ImagePath value from  
>>>  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Go Agent
>>>   * Edit that value and paste to ImagePath at 
>>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GoAgent2
>>>  * Start Service GoAgent2
>>>
>>> On Tuesday, August 17, 2021 at 7:55:45 AM UTC-5 Emil wrote:
>>>
>>>> Hi Fellas,
>>>>
>>>> Is it possible to have multiple agents installed on the same windows 
>>>> box, windows is not mentioned in the docs 
>>>> <https://docs.gocd.org/current/advanced_usage/admin_install_multiple_agents.html>
>>>> ?
>>>> I tried silent install. but I got the following in the log:
>>>>
>>>> Previous Install dir is C:\GoCD\agent, checking if upgrade is 
>>>> possible...
>>>> Go Agent 21.2.0-12498 is already installed.
>>>>
>>>> Is there any workaround?
>>>>
>>>> Thanks,
>>>> Emil
>>>>
>>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/go-cd/c8d321fc-bc2e-4806-95f6-ba849913512bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/go-cd/c8d321fc-bc2e-4806-95f6-ba849913512bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/eef6a65a-6904-4228-ac93-0c5941f63732n%40googlegroups.com.

Reply via email to