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

metadata: add Windows #73

Closed
wants to merge 1 commit into from
Closed

metadata: add Windows #73

wants to merge 1 commit into from

Conversation

kenyon
Copy link
Contributor

@kenyon kenyon commented Aug 15, 2023

This reverts commit c3cf902.

I'm using the sshkey type on Windows with success.

@kenyon kenyon requested a review from a team as a code owner August 15, 2023 23:30
@mhashizume
Copy link
Contributor

Thanks for this @kenyon , I've opened a ticket internally for our team to take a look at this

This reverts commit c3cf902.

I'm using the sshkey type on Windows with success.
@kenyon
Copy link
Contributor Author

kenyon commented Mar 19, 2024

Done in commit c1a544b.

@kenyon kenyon closed this Mar 19, 2024
@kenyon kenyon deleted the windows branch March 19, 2024 04:50
@AriaXLi
Copy link
Contributor

AriaXLi commented Mar 26, 2024

Hi @kenyon, would it be possible to provide the code that uses sshkeys_core on Windows that's running successfully? From what I understand, not all features of sshkeys_core can be used on Windows, such as creating ssh authorized keys (see this failing test for more info).

@kenyon
Copy link
Contributor Author

kenyon commented Mar 29, 2024

@AriaXLi sure, on Windows I'm just using this module to populate a known_hosts file like this:

Sshkey {
  target  => 'C:/Program Files/Git/etc/ssh/ssh_known_hosts',
  require => Package['git'],
}

include ssh::knownhosts

ssh::knownhosts is from saz/ssh: https://github.com/saz/puppet-ssh/blob/master/manifests/knownhosts.pp

So yes, maybe not all features of this module work on Windows, at least without some additional work.

@AriaXLi
Copy link
Contributor

AriaXLi commented Apr 1, 2024

@kenyon Thanks for providing the code you used for Windows! Yeah it seems like some features don't work on Windows yet, like creating and managing ssh keys so there is more work needed than anticipated originally. Due to this, I reverted the changes made in #84. Feel free to checkout https://puppet.atlassian.net/browse/MODULES-11236 for more information.

@kenyon
Copy link
Contributor Author

kenyon commented Apr 1, 2024

@AriaXLi yes, I'm not sure if there are guidelines on when a platform should be included in metadata.json: when some module features work, or when all features work. Ideally, I suppose, if parts of a module work on a platform, it would be included in the metadata, only the supported features would be tested on that platform, and the platform-specific caveats would be documented in the readme. But either way, a user could always investigate and use the module regardless of what's in the metadata, like what I am doing.

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.

3 participants