Giter VIP home page Giter VIP logo

ansible-kerberos-server's Introduction

ansible-kerberos-server

Build Status

ansible-kerberos-server is an Ansible role to easily install a Kerberos Server.

This role is inspired in "bennojoy/kerberos_server" work.

Requirements

In order to use this Ansible role, you will need:

  • Ansible version >= 2.2 in your deployer machine.
  • Check meta/main.yml if you need to check dependencies.

Installation

ansible-kerberos-server is an Ansible role distributed globally using Ansible Galaxy. In order to install ansible-kerberos-server role you can use the following command.

$ ansible-galaxy install AlberTajuelo.kerberos-server

Update

If you want to update the role, you need to pass --force parameter when installing. Please, check the following command:

$ ansible-galaxy install --force AlberTajuelo.kerberos-server

Main workflow

This role does:

  • Download specific Kerberos packages (this packages are os-dependent).
  • Configuring Kerberos Server files:
  • kdc.conf
  • kadm5.acl
  • krb5.conf
  • Create an admin user

Role Variables

Attribute Default Value Description
realm_name REALM.NAME.COM Realm Name for Kerberos Server
kdc_port 88 Kerberos Key Distribution Center (KDC) port
master_db_pass m4st3r_p4ssw0rd Administrator password
kadmin_user defaultuser Kadmin username
kadmin_pass d3f4ultp4ss Kadmin password

Example Playbook

In the folder, example you can check an example project that shows how to deploy a Kerberos Server in two hosts.

In order to run it, you will need to have Vagrant and the ansible-kerberos-server role installed. Please check https://www.vagrantup.com for more information about Vagrant and our Installation section.

$ cd example/my-playbook
$ vagrant up
$ ansible-playbook -i hosts deploy.yml

You can check more advanced examples inside the test folder which are run against Travis-CI.

License

MIT

Future Improvements

  • Possibility to create multiple KDC slaves.
  • Flag to enable/disable to create an admin user.
  • Disable linking "/dev/urandom" to "/dev/random" and use a "secure" random generator tool (could be "haveged"?).
  • Install NTP firstly.
  • Possibility to have multiple KDC ports.
  • Enable/disable enctypes.
  • Adding more ACLs.
  • Create a list of keytabs.

Author Information

AlberTajuelo (@AlberTajuelo)

ansible-kerberos-server's People

Contributors

albertajuelo avatar

Watchers

 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.