The ssh_keygen class.
ssh_keygen { 'john':
type => 'dsa'
}
ssh_keygen { 'john':
bits => 4096
}
ssh_keygen { 'root':
filename => '/etc/ssh/ssh_host_rsa_key'
}
The following parameters are available in the ssh_keygen
defined type:
Data type: Optional[String]
Username to create key for
Default value: undef
Data type: Enum['rsa', 'dsa', 'ecdsa', 'ed25519', 'rsa1']
Type of key to create
Default value: 'rsa'
Data type: Optional[Integer]
Number of bits in key
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Home directory for user
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Key filename
Default value: undef
Data type: Optional[String]
Key comment
Default value: undef
Data type: Optional[Array[String]]
Additional options to pass on to ssh-keygen
Default value: undef