Initial blank vm
This commit is contained in:
commit
a34c5d704f
20
README.md
Normal file
20
README.md
Normal file
@ -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://<proxy>' 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
|
31
Vagrantfile
vendored
Normal file
31
Vagrantfile
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user