Giter Site home page Giter Site logo

proving_ground's Introduction

Proving Ground

Vagrant test environment with prepared scenarios

Getting started

Prepare workstation

  1. Install vagrant. You can download the latest version here.
  2. Install virtualbox and/or libvirt including dev dependencies (e.g. libvirt-dev on debian distributions).
  3. Install vagrant plugins.
    vagrant plugin install vagrant-hostmanager
    vagrant plugin install vagrant-libvirt
    vagrant plugin install vagrant-mutate
    vagrant plugin install vagrant-share
    

Select environment

Environments are seperated in different directories which are self contained with the exception of plugins/custom extensions for vagrant.

cd <directory>

Start environment

vagrant up

Destroy environment

vagrant destroy -f

Update environment

vagrant box update

Cleanup environment

vagrant box prune

Features

Hostmanager

Manages /etc/hosts file of the system to ensure virtual machines are reachable by .vagrant. To ensure every user in sudo group can update /etc/hosts the sudoers file needs to be modified:

# vagrant-hostmanager
Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp */.vagrant.d/tmp/hosts.local /etc/hosts
%sudo ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE

This of course can also be specific to one user instead of %sudo.

SSH key integration

Plugin: plugins/key_authorization.rb

Ensures the users public key is situated on every virtual machine. This way a passwordless login is possible.gg

Ansible Provisioning

New roles need to be added from within the .ansible directory with the command:

ansible-galaxy install <author.role>

License

MIT

proving_ground's People

Watchers

James Cloos 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.