Giter VIP home page Giter VIP logo

zero-users's Introduction

zero-users: Zero hassle user management

zero-users is an ansible project to perform linux user management with minimum configuration with built in validation. Users, created using zero-users, can ssh into servers using key based authentication.

Prerequisites

Ansible: A working installation of ansible is required. See installation details here.

Features

  • Automated user creation, deletion on configurable server groups
  • Sudo access management
  • Builtin configuration validation

Instructions

  • Note: The documentation is divided into multiple files and directory. Configuration files & directories may contain useful info specific to the area. Please check for README.md file at configuration directories and comments in variable files before making changes.

  • Configure:

    1. Define servers in an ansible inventory file. See examples in the inventory/ directory
    2. Define users, sudo access permission in the variable file here
    3. Place the users ssh public key here
  • Execute:

    $ ansible-playbook -v -i inventory/production.ini site.yml

Extra Arguments

  • validate_mode: When validate_mode is passed as true, the playbook does configuration validation and skips all real tasks. Default: False. Sample execution:
    $ ansible-playbook -v -i inventory/production.ini -e validate_mode=true site.yml
  • remove_home: When remove_home is passed as true, the home directory of users being deleted is also deleted. Default: False. Sample execution:
    $ ansible-playbook -v -i inventory/production.ini -e remove_home=true site.yml

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.