Skip to content

hostkeys: Properly set name of created sshkey objects#440

Open
supertassu wants to merge 1 commit intosaz:masterfrom
supertassu:master
Open

hostkeys: Properly set name of created sshkey objects#440
supertassu wants to merge 1 commit intosaz:masterfrom
supertassu:master

Conversation

@supertassu
Copy link
Copy Markdown

Pull Request (PR) description

By default, the sshkey resource assumes the resource title is a hostname that should end up in the known hosts file, so with the current setup hosts like some.fdqn.example_ed25519 are ending up in there which is wrong and messes up tab completion and similar.

This PR removes those incorrect names by updating the resource to override the name attribute to the host FQDN instead of relying on the default resource title and setting the host FQDN as an alias.

This Pull Request (PR) fixes the following issues

n/a

By default, the sshkey resource assumes the resource title is a hostname
that should end up in the known hosts file, so with the current setup
hosts like some.fdqn.example_ed25519 are ending up in there which is
wrong and messes up tab completion and similar.

This commit removes those incorrect names by updating the resource to
override the name attribute to the host FQDN instead of relying on the
default resource title and setting the host FQDN as an alias.
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.

1 participant