GoogleCloudPlatform / GoogleCloudPlatform/compute-image-windows
Setting the host name from custom image
- Dominant language
- PowerShell
- Stars
- 112
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Have some windows server 2016 images pre-built from Packer/Chef, based on the stock GCE base images. We are then deploying new GCE instances from the custom images. The problem we are seeing is that instance_setup.ps1 doesn't appear to run for the new instances, thus the hostname doesn't get properly set, it gets left as the name of the instance during creation.
Is there a pattern to solve this effectively short of copying the hostname resetting code to a custom startup script?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading instance_setup.ps1 and tracing how it is invoked for stock versus custom GCE images. Compare that behavior with the custom startup script approach described in the issue. Done means identifying and documenting a supported way to set the hostname when deploying Windows Server 2016 instances from custom images.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, powershell
- Domain
- cloud, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100