GithubHelp home page GithubHelp logo

macunha1 / vagrantfiles Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 57 KB

Combo with a bunch of Vagrantfiles, to setup local and/or ephemeral Virtual machines.

License: The Unlicense

Ruby 100.00%
vagrant virtualization vagrantfiles

vagrantfiles's Introduction

Vagrantfiles

Combo with a bunch of Vagrantfiles, to setup local and/or ephemeral Virtual machines.

The main motivation was to test Ansible. So, most of the Vagrantfiles carries python installed by default. Also, they have a copy of the host machine default public RSA key, which allows easy connection with ssh vagrant@$IP facilitating Ansible inventory setup

Getting Started

Prerequisites

Install a VM provider supported by Vagrant, most popular is VirtualBox.

For libvirt support the following plugin is necessary

vagrant plugin install vagrant-libvirt

Last step is (of course) Vagrant.

Then, you're setted up!

Quickstart

Usage

To download all base vagrant boxes just run the following (assuming that you're on a POSIX/Unix/Linux-based operating system)

find . -name Vagrantfile -type f \
    -exec awk '/config\.vm\.box/{print $NF}' {} + | \
    sort | uniq | \
    xargs -P 4 -I{} vagrant box add {} \
        --provider "${VAGRANT_PROVIDER:-virtualbox}"

You can configure your VM default values for vCPUs and RAM with:

export VAGRANT_CPU_CORE=2 # Number of vCPUs to dedicate
export VAGRANT_RAM_GB=4 # Allocated RAM in GB
export VAGRANT_PROVIDER=libvirt # alternative VM provider
export VAGRANT_IPV4_ADDRESS=192.168.50.111 # default Ipv4 address for VM

Set those values in your $HOME/.profile or ${HOME}/${SHELL}rc (as you wish) to store the configuration.

After downloading base boxes, you can run your desired operating system with

cd $DESIRED_OPERATING_SYSTEM && vagrant up

Contribute

PRs Welcome

  • Feel free to fill an issue with feature request(s), or to send me a Pull request, I will be happy to collaborate.

  • If the code don't work, or if you found some bug during the execution, let me know.

vagrantfiles's People

Contributors

macunha1 avatar

Stargazers

 avatar

Watchers

 avatar  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.