Giter Site home page Giter Site logo

puppet-ssh's Introduction

ssh

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with ssh
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

一个简单管理ssh的puppet模块

Module Description

此模块仅对ssh服务进行安装、简单配置并管理其运行状态;此模块不提供删除ssh的功能。

Setup

What ssh affects

  • openssh package
  • openssh configuration
  • openssh service

Setup Requirements OPTIONAL

由于模块在安装ssh包的时候会用到源,请使用之前确认软件源正常工作

Beginning with ssh

If you just want server and client being installed and use with default option

node 'node1.bw-y.com' {
  class { '::ssh': }
}

Usage

If you want managed ssh certain options:

node 'node1.bw-y.com' {
  class { '::ssh':
    sshd_port          => [ '22', '22022' ],
    sshd_servers       => [ '192.168.0.11', '10.0.0.11' ],
    sshd_usedns        => 'no',
    ssh_gssapiauth     => 'no',
    ssh_ssh_firstcheck => 'no',
  }
}

Reference

Public Classes

  • ssh: Main class, includes all other classes.

Private Classes

  • ssh::install currently install openssh
  • ssh::config manages configuration
  • ssh::service manages service

Parameters

The following parameters are available in the ::ssh class:

sshd_port

配置一个或多个ssh服务的监听端口. 有效数据类型: 数组. 默认值: [ '22' ]

sshd_servers

配置一个或多个ssh服务的监听IP. 有效数据类型: 数组. 默认值: [ '0.0.0.0' ]

sshd_usedns

ssh DNS解析. 有效值 no:关闭;yes:开启. 默认值 no

sshd_sftp

是否开启内置sftp, 有效值 true:开启 false:不开启 默认值: false

ssh_gssapiauth

ssh客户端的GSSAPI认证,关闭可以提升ssh连接速度。 有效值 no:关闭;yes:开启. 默认值 no

ssh_ssh_firstcheck

ssh客户端首次连接时是否询问yes/no,关闭则不询问。 有效值 no:关闭;yes:开启. 默认值 no

stage

执行顺序,见stdlib::stages

Limitations

目前仅支持系统如: rhel/centos(5/6) , ubuntu(10.04/12.04/14.04)

puppet-ssh's People

Watchers

James Cloos avatar barry 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.