ahstn / centos-dev-vagrant

Vagrant VM which provisions a Centos 7 box for development using Chef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

centos-dev-vagrant

A vagrant box designed to create a modular development environment.

License: MIT

Uses a Chef cookbook for provisioning. For more information on the cookbook view the README.md.

Requirements

  • Virtualbox
  • Vagrant
  • Berkshelf (via ChefDK or RubyGem)

Installation

git clone https://github.com/phazyy/centos-dev-vagrant.git
cd centos-dev-vagrant
vagrant plugin install vagrant-berkshelf vagrant-vbguest
vagrant up

NB: vagrant up should also install the required vagrant plugins (see Vagrantfile for more info).

Usage

By default the cookbook will only setup common dev tools like git, mlocate, GNOME 3 and terminator. However it has the ability to provision the environment for java or chef development and setup zsh, vim and more tools.

To enable extra provisioning simply add the recipes you want to the role located here. (A list of recipes can be found here).

For example, to setup an environment for Java development with ZSH installed, the role include be the following:

"run_list": [
    "recipe[adam-vagrant::yum_repos]",
    "recipe[adam-vagrant::common]",
    "recipe[adam-vagrant::java]"
    "recipe[adam-vagrant::zsh]"
  ]

The role can also be used to override the attributes used when provisoning. (A list of attributes can be found here).

For example, to setup a headless VM with a custom URL for vim-plug, the role would include the following:

"override_attributes": {
  "vagrant": {
    "vm_type": "headless"
  },
  "vim-plug": {
    "url": "http://repo.company.com/plug.vim"
  }
}

About

Vagrant VM which provisions a Centos 7 box for development using Chef


Languages

Language:Ruby 93.1%Language:HTML 6.9%