I am trying to figure out the best way to handle the deployment of the Windows Agent and while I think I have it working farely well, I have one issue that I would like to get an opinion or help on.
I have import and sync configured to automatically add hosts from AD. This works fine.
I have the Windows Agent being deployed via SCCM using the Powershell module and the Director Self-Service API. This is also working fine with a couple of minor issues:
When the host object is imported from AD I have it configured to make the address field the fqdn. I like this because I prefer the fqdn over the IP address. When I deploy a Windows Agent with the Powershell module, it works fine… but it changes the address field to be the ipaddress instead of the fqdn.
This causes Director to see a change and require manual deployment. When the next scheduled sync/import jobs run, they see the ipaddress in the address field and automatically change it back to the fqdn, requiring another manual deployment of the config because of the change.
I would like to have it work so that the address field stays the fqdn but I cannot figure out how to make the agent use the fqdn for the address field instead of the ipaddress.
I could stop setting the address field in the import/sync to the fqdn but at the end of the day I would prefer it to be the fqdn.
I’m trying to automate as much as possible without my interaction and this seems to be my last issue.
Any suggestions? I tried using json in the Powershell module but it sounds like it will require using the username and password and director url in the script to accomplish it… I’m not OK with that.