Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
webcoyote committed Dec 17, 2012
0 parents commit 5727595
Show file tree
Hide file tree
Showing 13 changed files with 160 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
@@ -0,0 +1,11 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks
*.sublime-workspace
3 changes: 3 additions & 0 deletions Berksfile
@@ -0,0 +1,3 @@
site :opscode

metadata
5 changes: 5 additions & 0 deletions Gemfile
@@ -0,0 +1,5 @@
source :rubygems

gem 'berkshelf'
gem 'thor-foodcritic'
gem 'vagrant', '~> 1.0.5'
3 changes: 3 additions & 0 deletions LICENSE
@@ -0,0 +1,3 @@
Copyright (C) 2012 YOUR_NAME

All rights reserved - Do Not Redistribute
20 changes: 20 additions & 0 deletions README.md
@@ -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)
6 changes: 6 additions & 0 deletions Thorfile
@@ -0,0 +1,6 @@
# encoding: utf-8

require 'bundler'
require 'bundler/setup'
require 'thor/foodcritic'
require 'berkshelf/thor'
33 changes: 33 additions & 0 deletions Vagrantfile
@@ -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 added attributes/default.rb
Empty file.
52 changes: 52 additions & 0 deletions chefignore
@@ -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
8 changes: 8 additions & 0 deletions metadata.rb
@@ -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"

3 changes: 3 additions & 0 deletions operator-ssh.bat
@@ -0,0 +1,3 @@
@setlocal
@set TERM=
ssh.exe vagrant@127.0.0.1 -p 2222 -i "%USERPROFILE%\.vagrant.d\insecure_private_key" %*
8 changes: 8 additions & 0 deletions project.sublime-project
@@ -0,0 +1,8 @@
{
"folders":
[
{
"path": "/C/Dev/linux-vm"
}
]
}
8 changes: 8 additions & 0 deletions recipes/default.rb
@@ -0,0 +1,8 @@
#
# Cookbook Name:: linux-vm
# Recipe:: default
#
# Copyright (C) 2012 YOUR_NAME
#
# All rights reserved - Do Not Redistribute
#

0 comments on commit 5727595

Please sign in to comment.