11# Puppet SSH
22
3- [ ![ Puppet Forge modules by saz] ( https://img.shields.io/puppetforge/mc/saz.svg )] ( https://forge.puppetlabs.com/saz )
4- [ ![ Puppet Forge] ( http://img.shields.io/puppetforge/v/saz/ssh.svg )] ( https://forge.puppetlabs.com/saz/ssh )
5- [ ![ Puppet Forge downloads] ( https://img.shields.io/puppetforge/dt/saz/ssh.svg )] ( https://forge.puppetlabs.com/saz/ssh )
6- [ ![ Puppet Forge score] ( https://img.shields.io/puppetforge/f/saz/ssh.svg )] ( https://forge.puppetlabs.com/saz/ssh )
7- [ ![ Build Status] ( https://github.com/saz/puppet-ssh/workflows/CI/badge.svg )] ( https://github.com/saz/puppet-ssh/actions?query=workflow%3ACI )
8-
93Manage SSH client and server via Puppet.
10- Source: https://github.com/saz/puppet-ssh
114
125## Requirements
6+
137* Exported resources for host keys management
148* puppetlabs/stdlib
159* puppetlabs/concat
@@ -31,6 +25,7 @@ options => {
3125This is working for both, client and server.
3226
3327### Both client, server and per user client configuration
28+
3429Host keys will be collected and distributed unless
3530 ` storeconfigs_enabled ` is ` false ` .
3631
@@ -71,6 +66,7 @@ class { 'ssh':
7166```
7267
7368### Hiera example
69+
7470``` yaml
7571ssh::storeconfigs_enabled : true
7672
@@ -106,6 +102,7 @@ ssh::users_client_options:
106102` ` `
107103
108104### Client only
105+
109106Collected host keys from servers will be written to ` known_hosts` unless
110107 ` storeconfigs_enabled` is `false`
111108
@@ -189,6 +186,7 @@ SSH configuration file will be `/var/lib/bob/.ssh/config`.
189186` ` `
190187
191188# ## Server only
189+
192190Host keys will be collected for client distribution unless
193191 ` storeconfigs_enabled` is `false`
194192
@@ -226,7 +224,6 @@ class { 'ssh::server':
226224}
227225` ` `
228226
229-
230227# # Default options
231228
232229# ## Client
@@ -251,6 +248,7 @@ class { 'ssh::server':
251248` ` `
252249
253250# # Overwriting default options
251+
254252Default options will be merged with options passed in.
255253If an option is set both as default and via options parameter, the latter
256254will win.
@@ -305,6 +303,7 @@ PasswordAuthentication no
305303` ` `
306304
307305# # Defining host keys for server
306+
308307You can define host keys your server will use
309308
310309` ` ` puppet
@@ -327,7 +326,6 @@ ssh::server::host_key {'ssh_host_rsa_key':
327326Both of these definitions will create ```/etc/ssh/ssh_host_rsa_key``` and
328327` ` ` /etc/ssh/ssh_host_rsa_key.pub` ` ` and restart sshd daemon.
329328
330-
331329# # Adding custom match blocks
332330
333331` ` ` puppet
0 commit comments