Skip to content

Setting the host name from custom image #173

Description

@wilhelmi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions