Skip to content

Latest commit

 

History

History
114 lines (77 loc) · 4.28 KB

README.md

File metadata and controls

114 lines (77 loc) · 4.28 KB

system

License Build Status

Platform Platform Platform Platform Platform Platform

Project Stats

Ansible to setup user groups, user accounts and authorized keys.

Tests

Family Distribution Version Test Status
Debian Debian Wheezy x86_64
Debian Debian Jessie x86_64
Debian Ubuntu Yakkety x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Wily x86_64
Debian Ubuntu Vivid x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Precise x86_64
Suse OpenSUSE Leap x86_64
Suse OpenSUSE Tumbleweed x86_64
RedHat CentOS 7 x86_64
RedHat CentOS 6 x86_64
RedHat Fedora 21 x86_64
RedHat Fedora 20 x86_64

Requirements

Role Variables

  • debug: flag to run debug tasks.

  • system_ssh_dir_public_keys: directory where SSH public keys are stored.

  • system_ssh_dir_deprecated_keys: directory where SSH deprecated public keys are stored.

  • system_groups: system's groups.

  • system_ssh_deprecated_keys: list of SSH keys that have been deprecated.

  • system_users: system's user accounts.

Dependencies

None.

Playbooks

- hosts: servers
  roles:
     - role: ansiblebit.system

Tags

  • configuration: configuration tasks.

  • debug: task to debug role variables.

  • installation: installation tasks.

  • validation: validation tasks.

  • system_authorized_keys: authorized keys setup tasks.

  • system_debug: role specific debug tasks.

  • system_group: group setup tasks.

  • system_user: user setup tasks.

  • system_validation: role specific validation tasks.

Test

To run the tests you will need to install:

To run all tests against all pre-defined OS/distributions * ansible versions:

$ tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log

To perform debugging on a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev

# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev