Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Fix DHCP hostname being overwritten #881

Merged
merged 1 commit into from
Apr 15, 2016

Conversation

joshwget
Copy link
Contributor

Depends on rancher/netconf#12

Adds a default_hostname attribute which is used to distinguish between a user set hostname and the one specified in os-config.yml.

DHCP will only be given the -e force_hostname=true flag if the user doesn't set a hostname in the cloud config. DHCP won't change the hostname without this flag.

Some hostname functionality was moved out of cmd/cloudinit/cloudinit.go and cmd/network/network.go to a separate hostname package.
#829
#863

@joshwget joshwget force-pushed the fix-dhcp-hostname branch 4 times, most recently from e26f1e6 to 7fee359 Compare April 15, 2016 00:12
@joshwget joshwget force-pushed the fix-dhcp-hostname branch from 7fee359 to a0ae622 Compare April 15, 2016 04:58
@ibuildthecloud ibuildthecloud merged commit 8b4e6cc into rancher:master Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants