Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cloud_provider hostnames #223

Merged
merged 1 commit into from Dec 19, 2018
Merged

Conversation

jorhett
Copy link
Contributor

@jorhett jorhett commented Dec 19, 2018

So there's some inconsistency between cloud providers which mandate that their metadata names for the node be used (notably but not only AWS) and the usage of the node label in various exec resources.

This change makes the internal name passed around be node_name, and allows us to query the metadata of a cloud provider when necessary to determine the appropriate name. It defaults to the original behavior of using the fact's hostname.

This seemed easier than trying to hot-query k8s during installation to determine what name it wants us to use. In AWS's case, this might go away if these changes ever land: kubernetes/kubernetes#61878

fixes #218
obsoletes #221

Make node_name mandatory for init/join, as the execs won't work without it
@davejrt
Copy link
Contributor

davejrt commented Dec 19, 2018

Thanks for your contribution. The use of a single paramater was what I was referring to earlier when I said that was our error and we should have remedied it, but we appreciate your effort in going ahead and raising this PR.

@davejrt davejrt merged commit 1a858b0 into puppetlabs:master Dec 19, 2018
@jorhett jorhett deleted the fix_aws_hostnames branch December 20, 2018 18:19
@davejrt davejrt added this to the 3.2.0 milestone Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fact resolution failed
2 participants