Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5727595
Showing
13 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.vagrant | ||
Berksfile.lock | ||
Gemfile.lock | ||
*~ | ||
*# | ||
.#* | ||
\#*# | ||
.*.sw[a-z] | ||
*.un~ | ||
/cookbooks | ||
*.sublime-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
site :opscode | ||
|
||
metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source :rubygems | ||
|
||
gem 'berkshelf' | ||
gem 'thor-foodcritic' | ||
gem 'vagrant', '~> 1.0.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright (C) 2012 YOUR_NAME | ||
|
||
All rights reserved - Do Not Redistribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# linux-vm cookbook | ||
|
||
# Requirements | ||
|
||
# Initial installation | ||
|
||
gem install berkshelf | ||
berks cookbook linux-vm --foodcritic | ||
cd linux-vm | ||
bundle exec vagrant up | ||
|
||
# Usage | ||
|
||
# Attributes | ||
|
||
# Recipes | ||
|
||
# Author | ||
|
||
Author:: Patrick Wyatt (pat@codeofhonor.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# encoding: utf-8 | ||
|
||
require 'bundler' | ||
require 'bundler/setup' | ||
require 'thor/foodcritic' | ||
require 'berkshelf/thor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
require 'berkshelf/vagrant' | ||
|
||
Vagrant::Config.run do |config| | ||
config.vm.host_name = "devbox" | ||
|
||
# OS selection | ||
config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal" | ||
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box" | ||
|
||
# Hardware | ||
config.vm.customize ["modifyvm", :id, "--memory", 1536] | ||
config.vm.customize ["modifyvm", :id, "--cpus", 2] | ||
|
||
# Network configuration | ||
#config.vm.network :bridged | ||
config.vm.network :hostonly, "192.168.33.10" | ||
#config.vm.forward_port 80, 8080 | ||
|
||
# Show GUI mode in VirtualBox | ||
#config.vm.boot_mode = :gui | ||
|
||
# Share an additional folder to the guest VM. The first argument is | ||
# an identifier, the second is the path on the guest to mount the | ||
# folder, and the third is the path on the host to the actual folder. | ||
Dir::mkdir("/vm_data") unless FileTest::directory?("/vm_data") | ||
config.vm.share_folder "vm_data", "/vm_data", "/vm_data" | ||
|
||
config.vm.provision :chef_solo do |chef| | ||
chef.run_list = [ | ||
"recipe[linux-vm::default]" | ||
] | ||
end | ||
end |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Put files/directories that should be ignored in this file. | ||
# Lines that start with '# ' are comments. | ||
|
||
## OS | ||
.DS_Store | ||
Icon? | ||
nohup.out | ||
|
||
## EDITORS | ||
\#* | ||
.#* | ||
*~ | ||
*.sw[a-z] | ||
*.bak | ||
REVISION | ||
TAGS* | ||
tmtags | ||
*_flymake.* | ||
*_flymake | ||
*.tmproj | ||
.project | ||
.settings | ||
mkmf.log | ||
|
||
## COMPILED | ||
a.out | ||
*.o | ||
*.pyc | ||
*.so | ||
|
||
## OTHER SCM | ||
*/.bzr/* | ||
*/.hg/* | ||
*/.svn/* | ||
|
||
## Don't send rspecs up in cookbook | ||
.watchr | ||
.rspec | ||
spec/* | ||
spec/fixtures/* | ||
features/* | ||
|
||
## SCM | ||
.gitignore | ||
|
||
# Berkshelf | ||
Berksfile | ||
Berksfile.lock | ||
cookbooks/* | ||
|
||
# Vagrant | ||
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name "linux-vm" | ||
maintainer "Patrick Wyatt" | ||
maintainer_email "pat@codeofhonor.com" | ||
license "All rights reserved" | ||
description "Installs/Configures linux-vm" | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "0.1.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@setlocal | ||
@set TERM= | ||
ssh.exe vagrant@127.0.0.1 -p 2222 -i "%USERPROFILE%\.vagrant.d\insecure_private_key" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"folders": | ||
[ | ||
{ | ||
"path": "/C/Dev/linux-vm" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Cookbook Name:: linux-vm | ||
# Recipe:: default | ||
# | ||
# Copyright (C) 2012 YOUR_NAME | ||
# | ||
# All rights reserved - Do Not Redistribute | ||
# |