Skip to content

support sshkey of type cert-authority #89

@bwitt

Description

@bwitt

Use Case

I'd like to have this module add a cert-authority to the global known hosts file.

Describe the Solution You Would Like

This module could allow a sshkey of type cert-authority to populate a known_hosts entry like this:

sshkey { '*.example.com':
  ensure => present,
   type => '@cert-authority ssh-rsa',
   key => '<key>',

that would add an entry to the known hosts file

@cert-authority *.example.com ssh-rsa <key>

Describe Alternatives You've Considered

I cannot workaround this; if I add a cert-authority line manually, it leads to an error

Error: /Stage[main]/Ssh/Resources[sshkey]: Failed to generate additional resources using 'generate': Parameter type failed on Sshkey[@]: Invalid value "cert-authority@*". Valid values are ssh-dss, ssh-ed25519, ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, [email protected], [email protected].

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions