An open API service indexing awesome lists of open source software.

https://github.com/voxpupuli/puppet-ssh_keygen

Generation of ssh keys with ssh-keygen
https://github.com/voxpupuli/puppet-ssh_keygen

hacktoberfest puppet

Last synced: 3 months ago
JSON representation

Generation of ssh keys with ssh-keygen

Awesome Lists containing this project

README

          

# puppet-ssh_keygen
[![Build Status](https://github.com/voxpupuli/puppet-ssh_keygen/workflows/CI/badge.svg)](https://github.com/voxpupuli/puppet-ssh_keygen/actions?query=workflow%3ACI)
[![Release](https://github.com/voxpupuli/puppet-ssh_keygen/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-ssh_keygen/actions/workflows/release.yml)
[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/ssh_keygen.svg)](https://forge.puppetlabs.com/puppet/ssh_keygen)
[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/ssh_keygen.svg)](https://forge.puppetlabs.com/puppet/ssh_keygen)
[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/ssh_keygen.svg)](https://forge.puppetlabs.com/puppet/ssh_keygen)
[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/ssh_keygen.svg)](https://forge.puppetlabs.com/puppet/ssh_keygen)
[![puppetmodule.info docs](http://www.puppetmodule.info/images/badge.png)](http://www.puppetmodule.info/m/puppet-ssh_keygen)
[![Apache-2 License](https://img.shields.io/github/license/voxpupuli/puppet-ssh_keygen.svg)](LICENSE)
[![Donated by maestrodev](https://img.shields.io/badge/donated%20by-maestrodev-fb7047.svg)](#authors)

## Table of Contents

1. [Usage - Configuration options and additional functionality](#usage)
1. [Development - Guide for contributing to the module](#development)

## Usage

Generate ssh keys for any user using ssh_keygen, that needs exist before using
the module

```puppet
ssh_keygen { 'john': }
```

or if not using the default `/home/john`

```puppet
ssh_keygen { 'john':
home => '/var/home'
}
```

the key comment can also be overriden with

```puppet
ssh_keygen { 'john':
comment => 'john key'
}
```

Generate a dsa key

```puppet
ssh_keygen { 'john':
type => 'dsa'
}
```

specify the bit length

```puppet
ssh_keygen { 'john':
bits => 4096
}
```

Generate new host key

```puppet
ssh_keygen { 'root':
filename => '/etc/ssh/ssh_host_rsa_key'
}
```

## Development

This module is maintained by [Vox Pupuli](https://voxpupuli.org/). Voxpupuli
welcomes new contributions to this module, especially those that include
documentation and rspec tests. We are happy to provide guidance if necessary.

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for more details.

### Authors

* Carlos Sanchez
* Vox Pupuli Team

Carlos initially created the module. Afterwards it got migrated to Vox Pupuli.