Giter Club home page Giter Club logo

nfb-galaxy.ssh-key's Introduction

nfb-galaxy.ssh-key

Grant access from the host to another server (outbound) using a pre-provisioned ssh private key, or grant access to a certain user account on the host (inbound) using a pre-provisioned ssh public key.

Requirements

ssh is required for this module to be useful.

Role Variables

Specify either 'outbound' or 'inbound' variant:

# Use 'outbound' to enable outbound ssh connections (from the host machine to another).
outbound:
  user: ""     # The user account where the private key will be installed. Leave empty to use the "current" user.
  private_key:
   file: ""    # Path to the private key file
   name: ""    # The name that will be given to the key file on the host machine.
  hosts: []    # A list of hosts for which the private key will be used to connect to.

# Use 'inbound' to enable inbound ssh connections to a user account (from a remote machine to the host).
inbound:
  user: ""        # The user account to which the remote machines will be granted access.
  public_key: ""  # The ssh public key that will be used for authentication.

Dependencies

N/A

Example Playbook

Example of an outbound setup to allow the user "bob" to clone projects from the git servers:

- hosts: servers
  roles:
     - role: nfb-galaxy.ssh-key
       outbound:
         user: "bob"
         private_key: {file: "../keys/git/id_rsa", name: "git_id_rsa"}
         hosts:
           - git1.localnet.com
           - git2.localnet.com

Example of an inbound setup to allow a remote machine to connect to bob's account via ssh:

- hosts: servers
  roles:
     - role: nfb-galaxy.ssh-key
       inbound:
         user: "bob"
         public_key: "../keys/id_rsa.pub"

nfb-galaxy.ssh-key's People

Contributors

jeromelefeuvre avatar mavoine avatar

Watchers

 avatar Sébastien Testeau avatar  avatar  avatar Philippe Chartrand avatar James Cloos avatar JS Beaulieu avatar Sergiu Raul Suciu avatar Loc Dao avatar  avatar Martin Leroux avatar  avatar  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.