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

Changed for more reliable hostname resolution #27

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

dylanratcliffe
Copy link
Contributor

Using hostnamectl --transient doesn't always return the FQDN, which is what the plans are usually expecting. hostname -f is a more reliable way of doing this.

Fixes #22

Using `hostnamectl --transient` doesn't *always* return the FQDN, which is what the plans are usually expecting. `hostname -f` is a more reliable way of doing this.

Fixes puppetlabs#22
Copy link
Contributor

@reidmv reidmv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to see if there was a simple way to do exactly what Facter would do, but turns out ...there's not. So this is about as good as it gets for now.

A future refinement could be to allow setting the Puppet certname so that it doesn't have to match apriori. Not a need-to-have. 👍 on this improvement.

@reidmv reidmv merged commit 6010b0c into puppetlabs:master Oct 30, 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.

hostname task fails if FQDN provided in inventory/params
2 participants