Skip to content

Repository files navigation

system

LicenseBuild Status

PlatformPlatformPlatformPlatformPlatformPlatform

Project Stats

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

Tests

FamilyDistributionVersionTest Status
DebianDebianWheezyx86_64
DebianDebianJessiex86_64
DebianUbuntuYakketyx86_64
DebianUbuntuXenialx86_64
DebianUbuntuWilyx86_64
DebianUbuntuVividx86_64
DebianUbuntuTrustyx86_64
DebianUbuntuPrecisex86_64
SuseOpenSUSELeapx86_64
SuseOpenSUSETumbleweedx86_64
RedHatCentOS7x86_64
RedHatCentOS6x86_64
RedHatFedora21x86_64
RedHatFedora20x86_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

About

Ansible role to setup user environments.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages