- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with ssh
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module installs and manages openssh-client and openssh-server
This module uses augeas to manage sshd_config and file_line to manage ssh_config
- installs ssh client packages
- installes ssh server pacvkages
- manages /etc/ssh/ssh_config
- manages /etc/ssh/sshd_config
- stdlib 4.6.0
just add the ssh class
class {'::ssh' }The main ssh class has two parameters to allow you to decide if you want to manage both the client and the server.
class {'::ssh'
manage_client => false,
manage_server => true,
}of with hiera
ssh::manage_client: false
ssh::manage_server: trueThe ssh client currently only supports CheckHostIP
class {'::ssh::client'
check_host_ip => true,
}of with hiera
ssh::client::check_host_ip: trueThe ssh server class manages a reduced set of parameters used by sshd
class {'::ssh::server'
password_authentication => false,
x11_forwading => false,
}of with hiera
ssh::server::password_authentication: false
ssh::server::x11_forwading: falseMain class, includes all other classes
manage_client: runssh::client. Valid options: 'true' and 'false'. Default: 'false'.manage_server: runssh::server. Valid options: 'true' and 'false'. Default: 'false'.
Manage openssh client
package: Specifies the package to install. Valid options: string. Default: os specificcheck_host_ip: Specifies whether to set CheckHostIP. Valid options: 'true' and 'false'. Default: 'false'.
Manage openssh server
package: Specifies the package to install. Valid options: string. Default: os specificchallenge_response_authentication: Specifies whether to set ChallengeResponseAuthentication. Valid options: 'true' and 'false'. Default: 'false'.password_authentication: Specifies whether to set PasswordAuthentication. Valid options: 'true' and 'false'. Default: 'true'.x11_forwading: Specifies whether to set X11Forwarding. Valid options: 'true' and 'false'. Default: 'true'.print_mod: Specifies whether to set PrintMotd. Valid options: 'true' and 'false'. Default: 'false'.
This is where you list OS compatibility, version compatibility, etc.
This module is tested on Ubuntu 12.04, and 14.04 and FreeBSD 10