Git Product home page Git Product logo

puppet-module-sshkeys's Introduction

sshkeys Puppet module

Description

This module ensures that the sshkeys script is installed and provides user defined types for defining ssh key pairs.

The sshkeys script manages host keys and user keys. The host keys are stored in sshkeys::install::hostkeydir and the user keys are stored in sshkeys::install::userkeydir. The script operates in two modes:

  1. knownhosts file generation - Depending on how many hosts you have and how much turnover, this is probably best run only periodically as a cron job. It will consoldiate all the host keys into known_hosts file format that is suitable for intallation in either /etc/ssh/ssh_known_hosts or ~/.ssh/known_hosts.

  2. key retrieval - The script can retrieve any of the keys it has stored. If the key does not exist, the script will generate an unencrypted key pair and return that. If you want an encrypted key, you have to manually install it in the key store.

Example

To add an entry to jon@foo's .ssh/authorized_keys file to allow [email protected] log in:

node foo {
  sshkeys::authorizedkey{ 'john-tokyo':
    srcuser => 'john',
    srchost => 'tokyo.foo.bar',
    dstuser => 'jon',
  }
}

When compiling the catalog, the sshkeys script will grab <userkeydir>/john.tokyo.foo.bar.rsa.pub.

puppet-module-sshkeys's People

Contributors

chadhuneycutt avatar

Watchers

Chad Huneycutt avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.