commit a34c5d704f196485f7e009432f607bf3f9ecae40 Author: Tim Kuhlman Date: Thu Feb 13 13:52:00 2014 -0700 Initial blank vm diff --git a/README.md b/README.md new file mode 100644 index 0000000..2271e03 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +Install as mini monitoring environment based on vagrant, intended for development and monitoring of the monitoring infrastructure. + +# Usage +## Setup Vagrant +Assumes you have home brew installed +Also if you are behind a proxy add 'proxy = http://' to your ~/.curlrc and set your HTTP_PROXY env variable + +- brew tap phinze/cask +- brew install brew-cask +- brew cask install virtualbox +- brew cask install vagrant + +## Start mini-mon + +- vagrant up + - This will bring the vm up + - Your home dir is synced to the vm in /vagrant_home +- vagrant ssh + - This will give you shell on the vm +- Your vm is accessible at the ip 10.10.10.10 diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..ea999be --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,31 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +VAGRANTFILE_API_VERSION = "2" # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + config.vm.box = "precise64" + config.vm.box_url = "http://files.vagrantup.com/precise64.box" + config.vm.network :private_network, ip: "10.10.10.10" + + # Share an additional folder to the guest VM. The first argument is + # the path on the host to the actual folder. The second argument is + # the path on the guest to mount the folder. And the optional third + # argument is a set of non-required options. + config.vm.synced_folder "~/", "/vagrant_home" + + # Enable provisioning with chef solo, specifying a cookbooks path, roles + # path, and data_bags path (all relative to this Vagrantfile), and adding + # some recipes and/or roles. + # + # config.vm.provision :chef_solo do |chef| + # chef.cookbooks_path = "../my-recipes/cookbooks" + # chef.roles_path = "../my-recipes/roles" + # chef.data_bags_path = "../my-recipes/data_bags" + # chef.add_recipe "mysql" + # chef.add_role "web" + # + # # You may also specify custom JSON attributes: + # chef.json = { :mysql_password => "foo" } + # end +end