Skip to content
Puppet tools for ssh
Puppet
Latest commit 45d498d Dec 10, 2014 @blt Merge pull request #4 from mobilesfinks/master
add $tr command to known_hosts.pp
Failed to load latest commit information.
manifests/resource add $tr command Dec 10, 2014
templates Initial commit. Feb 19, 2012
LICENSE Initial commit. Feb 19, 2012
README.md Initial commit. Feb 19, 2012

README.md

Puppet tools for ssh

The module defines several resources for SSH. Notably:

  • ssh::resource::sshd -- Ensure sshd runs (or does not) on the specified node.
  • ssh::resource::key -- Create or destroy an ssh key for a given user.
  • ssh::resource::known_hosts -- Create or destroy a user's known_hosts listing.

Each resource is thoroughly documented. Please refer to them for full details.

Installation

From the root of your puppet repository add this module as a submodule:

$ git submodule add git://github.com/blt/puppet-ssh.git modules/ssh

Quick Start

To enable sshd:

class { 'ssh::resource::sshd':
  ensure => present,
}

To build the 'foo' user's id_rsa key:

ssh::resource::key { 'id_rsa':
  ensure => present,
  user => 'foo',
}

and set the known_hosts for user 'foo':

ssh::resource::known_hosts { 'foo':
  hosts => 'git.example.com,github.com',
  user => 'foo',
}
Something went wrong with that request. Please try again.