[from now] 2014/09/05 02:52:08

diff --git a/Berksfile b/Berksfile
index 554f404..9004f0d 100644
--- a/Berksfile
+++ b/Berksfile
@@ -1,5 +1,5 @@
-source "https://api.berkshelf.com"
+source "https://supermarket.getchef.com"

-cookbook     "ark"
-cookbook     "nginx"
-cookbook     "td-agent", git: "git@github.com:treasure-data/chef-td-agent.git"
+#metadata
+
+cookbook "my-base",    path: "site-cookbooks/my-base"
diff --git a/Berksfile.lock b/Berksfile.lock
index 9a9d90e..b6b9edb 100644
--- a/Berksfile.lock
+++ b/Berksfile.lock
@@ -1,39 +1,15 @@
 DEPENDENCIES
-  ark
-  nginx
-  td-agent
-    git: git@github.com:treasure-data/chef-td-agent.git
-    revision: e0d5ae89452740468f2ec87d94bd59db6c9907a6
+  my-base
+    path: site-cookbooks/my-base

 GRAPH
-  7-zip (1.0.2)
-    windows (>= 1.2.2)
-  apt (2.4.0)
-  ark (0.9.0)
-    7-zip (>= 0.0.0)
-    windows (>= 0.0.0)
-  bluepill (2.3.1)
-    rsyslog (>= 0.0.0)
-  build-essential (2.0.4)
-  chef_handler (1.1.6)
-  nginx (2.7.4)
-    apt (~> 2.2)
-    bluepill (~> 2.3)
-    build-essential (~> 2.0)
-    ohai (~> 2.0)
-    runit (~> 1.2)
-    yum-epel (~> 0.3)
-  ohai (2.0.1)
-  rsyslog (1.12.2)
-  runit (1.5.10)
+  build-essential (2.0.6)
+  my-base (0.1.0)
+    python (>= 0.0.0)
+    yum-epel (= 0.5.0)
+  python (1.4.6)
     build-essential (>= 0.0.0)
-    yum (~> 3.0)
     yum-epel (>= 0.0.0)
-  td-agent (0.0.1)
-    apt (>= 0.0.0)
-    yum (>= 0.0.0)
-  windows (1.31.0)
-    chef_handler (>= 0.0.0)
-  yum (3.2.2)
-  yum-epel (0.3.6)
+  yum (3.3.0)
+  yum-epel (0.5.0)
     yum (~> 3.0)
diff --git a/site-cookbooks/my-base/.gitignore b/site-cookbooks/my-base/.gitignore
new file mode 100644
index 0000000..cbccf1e
--- /dev/null
+++ b/site-cookbooks/my-base/.gitignore
@@ -0,0 +1,20 @@
+*~
+*#
+.#*
+\#*#
+.*.sw[a-z]
+*.un~
+pkg/
+
+# Berkshelf
+.vagrant
+/cookbooks
+Berksfile.lock
+
+# Bundler
+Gemfile.lock
+bin/*
+.bundle/*
+
+.kitchen/
+.kitchen.local.yml
diff --git a/site-cookbooks/my-base/.kitchen.yml b/site-cookbooks/my-base/.kitchen.yml
new file mode 100644
index 0000000..8e31207
--- /dev/null
+++ b/site-cookbooks/my-base/.kitchen.yml
@@ -0,0 +1,15 @@
+---
+driver:
+  name: vagrant
+
+provisioner:
+  name: chef_solo
+
+platforms:
+  - name: ubuntu-12.04
+  - name: centos-6.4
+
+suites:
+  - name: default
+    run_list:
+    attributes:
diff --git a/site-cookbooks/my-base/Berksfile b/site-cookbooks/my-base/Berksfile
new file mode 100644
index 0000000..a78b997
--- /dev/null
+++ b/site-cookbooks/my-base/Berksfile
@@ -0,0 +1,6 @@
+source "https://supermarket.getchef.com"
+
+metadata
+
+cookbook 'yum-epel', '= 0.5.0'
+cookbook 'python',   '~> 1.4.6'
diff --git a/site-cookbooks/my-base/CHANGELOG.md b/site-cookbooks/my-base/CHANGELOG.md
new file mode 100644
index 0000000..17d943d
--- /dev/null
+++ b/site-cookbooks/my-base/CHANGELOG.md
@@ -0,0 +1,3 @@
+# 0.1.0
+
+Initial release of my-base
diff --git a/site-cookbooks/my-base/Gemfile b/site-cookbooks/my-base/Gemfile
new file mode 100644
index 0000000..dc26e3c
--- /dev/null
+++ b/site-cookbooks/my-base/Gemfile
@@ -0,0 +1,18 @@
+source 'https://rubygems.org'
+
+gem 'berkshelf'
+
+# Uncomment these lines if you want to live on the Edge:
+#
+# group :development do
+#   gem "berkshelf", github: "berkshelf/berkshelf"
+#   gem "vagrant", github: "mitchellh/vagrant", tag: "v1.6.3"
+# end
+#
+# group :plugins do
+#   gem "vagrant-berkshelf", github: "berkshelf/vagrant-berkshelf"
+#   gem "vagrant-omnibus", github: "schisamo/vagrant-omnibus"
+# end
+
+gem 'test-kitchen'
+gem 'kitchen-vagrant'
diff --git a/site-cookbooks/my-base/LICENSE b/site-cookbooks/my-base/LICENSE
new file mode 100644
index 0000000..8ce2314
--- /dev/null
+++ b/site-cookbooks/my-base/LICENSE
@@ -0,0 +1,3 @@
+Copyright (C) 2014 YOUR_NAME
+
+All rights reserved - Do Not Redistribute
diff --git a/site-cookbooks/my-base/README.md b/site-cookbooks/my-base/README.md
new file mode 100644
index 0000000..b34cff7
--- /dev/null
+++ b/site-cookbooks/my-base/README.md
@@ -0,0 +1,42 @@
+# my-base-cookbook
+
+TODO: Enter the cookbook description here.
+
+## Supported Platforms
+
+TODO: List your supported platforms.
+
+## Attributes
+
+<table>
+  <tr>
+    <th>Key</th>
+    <th>Type</th>
+    <th>Description</th>
+    <th>Default</th>
+  </tr>
+  <tr>
+    <td><tt>['my-base']['bacon']</tt></td>
+    <td>Boolean</td>
+    <td>whether to include bacon</td>
+    <td><tt>true</tt></td>
+  </tr>
+</table>
+
+## Usage
+
+### my-base::default
+
+Include `my-base` in your node's `run_list`:
+
+```json
+{
+  "run_list": [
+    "recipe[my-base::default]"
+  ]
+}
+```
+
+## License and Authors
+
+Author:: YOUR_NAME (<YOUR_EMAIL>)
diff --git a/site-cookbooks/my-base/Thorfile b/site-cookbooks/my-base/Thorfile
new file mode 100644
index 0000000..b23ee16
--- /dev/null
+++ b/site-cookbooks/my-base/Thorfile
@@ -0,0 +1,12 @@
+# encoding: utf-8
+
+require 'bundler'
+require 'bundler/setup'
+require 'berkshelf/thor'
+
+begin
+  require 'kitchen/thor_tasks'
+  Kitchen::ThorTasks.new
+rescue LoadError
+  puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
+end
diff --git a/site-cookbooks/my-base/Vagrantfile b/site-cookbooks/my-base/Vagrantfile
new file mode 100644
index 0000000..3ab0140
--- /dev/null
+++ b/site-cookbooks/my-base/Vagrantfile
@@ -0,0 +1,88 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.require_version ">= 1.5.0"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+  # All Vagrant configuration is done here. The most common configuration
+  # options are documented and commented below. For a complete reference,
+  # please see the online documentation at vagrantup.com.
+
+  config.vm.hostname = "my-base-berkshelf"
+
+  # Set the version of chef to install using the vagrant-omnibus plugin
+  config.omnibus.chef_version = :latest
+
+  # Every Vagrant virtual environment requires a box to build off of.
+  # If this value is a shorthand to a box in Vagrant Cloud then
+  # config.vm.box_url doesn't need to be specified.
+  config.vm.box = "chef/ubuntu-14.04"
+
+  # The url from where the 'config.vm.box' box will be fetched if it
+  # is not a Vagrant Cloud box and if it doesn't already exist on the
+  # user's system.
+  # config.vm.box_url = "https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box"
+
+  # Assign this VM to a host-only network IP, allowing you to access it
+  # via the IP. Host-only networks can talk to the host machine as well as
+  # any other machines on the same network, but cannot be accessed (through this
+  # network interface) by any external networks.
+  config.vm.network :private_network, type: "dhcp"
+
+  # Create a forwarded port mapping which allows access to a specific port
+  # within the machine from a port on the host machine. In the example below,
+  # accessing "localhost:8080" will access port 80 on the guest machine.
+
+  # 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 "../data", "/vagrant_data"
+
+  # Provider-specific configuration so you can fine-tune various
+  # backing providers for Vagrant. These expose provider-specific options.
+  # Example for VirtualBox:
+  #
+  # config.vm.provider :virtualbox do |vb|
+  #   # Don't boot with headless mode
+  #   vb.gui = true
+  #
+  #   # Use VBoxManage to customize the VM. For example to change memory:
+  #   vb.customize ["modifyvm", :id, "--memory", "1024"]
+  # end
+  #
+  # View the documentation for the provider you're using for more
+  # information on available options.
+
+  # The path to the Berksfile to use with Vagrant Berkshelf
+  # config.berkshelf.berksfile_path = "./Berksfile"
+
+  # Enabling the Berkshelf plugin. To enable this globally, add this configuration
+  # option to your ~/.vagrant.d/Vagrantfile file
+  config.berkshelf.enabled = true
+
+  # An array of symbols representing groups of cookbook described in the Vagrantfile
+  # to exclusively install and copy to Vagrant's shelf.
+  # config.berkshelf.only = []
+
+  # An array of symbols representing groups of cookbook described in the Vagrantfile
+  # to skip installing and copying to Vagrant's shelf.
+  # config.berkshelf.except = []
+
+  config.vm.provision :chef_solo do |chef|
+    chef.json = {
+      mysql: {
+        server_root_password: 'rootpass',
+        server_debian_password: 'debpass',
+        server_repl_password: 'replpass'
+      }
+    }
+
+    chef.run_list = [
+        "recipe[my-base::default]"
+    ]
+  end
+end
diff --git a/site-cookbooks/my-base/chefignore b/site-cookbooks/my-base/chefignore
new file mode 100644
index 0000000..138a808
--- /dev/null
+++ b/site-cookbooks/my-base/chefignore
@@ -0,0 +1,94 @@
+# Put files/directories that should be ignored in this file when uploading
+# or sharing to the community site.
+# Lines that start with '# ' are comments.
+
+# OS generated files #
+######################
+.DS_Store
+Icon?
+nohup.out
+ehthumbs.db
+Thumbs.db
+
+# SASS #
+########
+.sass-cache
+
+# EDITORS #
+###########
+\#*
+.#*
+*~
+*.sw[a-z]
+*.bak
+REVISION
+TAGS*
+tmtags
+*_flymake.*
+*_flymake
+*.tmproj
+.project
+.settings
+mkmf.log
+
+## COMPILED ##
+##############
+a.out
+*.o
+*.pyc
+*.so
+*.com
+*.class
+*.dll
+*.exe
+*/rdoc/
+
+# Testing #
+###########
+.watchr
+.rspec
+spec/*
+spec/fixtures/*
+test/*
+features/*
+Guardfile
+Procfile
+
+# SCM #
+#######
+.git
+*/.git
+.gitignore
+.gitmodules
+.gitconfig
+.gitattributes
+.svn
+*/.bzr/*
+*/.hg/*
+*/.svn/*
+
+# Berkshelf #
+#############
+cookbooks/*
+tmp
+
+# Cookbooks #
+#############
+CONTRIBUTING
+CHANGELOG*
+
+# Strainer #
+############
+Colanderfile
+Strainerfile
+.colander
+.strainer
+
+# Vagrant #
+###########
+.vagrant
+Vagrantfile
+
+# Travis #
+##########
+.travis.yml
diff --git a/site-cookbooks/my-base/metadata.rb b/site-cookbooks/my-base/metadata.rb
new file mode 100644
index 0000000..9aec62f
--- /dev/null
+++ b/site-cookbooks/my-base/metadata.rb
@@ -0,0 +1,10 @@
+name             'my-base'
+maintainer       'YOUR_NAME'
+maintainer_email 'YOUR_EMAIL'
+license          'All rights reserved'
+description      'Installs/Configures my-base'
+long_description 'Installs/Configures my-base'
+version          '0.1.0'
+
+depends          'yum-epel', '= 0.5.0'
+depends          'python'
diff --git a/site-cookbooks/my-base/recipes/aws.rb b/site-cookbooks/my-base/recipes/aws.rb
new file mode 100644
index 0000000..d8176f5
--- /dev/null
+++ b/site-cookbooks/my-base/recipes/aws.rb
@@ -0,0 +1,15 @@
+#
+# Cookbook Name:: my-base::aws
+# Recipe:: default
+#
+# Copyright (C) 2014 YOUR_NAME
+#
+# All rights reserved - Do Not Redistribute
+#
+include_recipe "python::default"
+
+%w{awscli}.each do |pkg|
+    python_pip pkg do
+        action :install
+    end
+end
diff --git a/site-cookbooks/my-base/recipes/default.rb b/site-cookbooks/my-base/recipes/default.rb
new file mode 100644
index 0000000..745c99a
--- /dev/null
+++ b/site-cookbooks/my-base/recipes/default.rb
@@ -0,0 +1,16 @@
+#
+# Cookbook Name:: my-base
+# Recipe:: default
+#
+# Copyright (C) 2014 YOUR_NAME
+#
+# All rights reserved - Do Not Redistribute
+#
+
+include_recipe "yum-epel"
+
+%w{bash-completion}.each do |pkg|
+    package pkg do
+        action :install
+    end
+end
diff --git a/site-cookbooks/my-base/recipes/systools.rb b/site-cookbooks/my-base/recipes/systools.rb
new file mode 100644
index 0000000..a6c8d57
--- /dev/null
+++ b/site-cookbooks/my-base/recipes/systools.rb
@@ -0,0 +1,13 @@
+#
+# Cookbook Name:: my-base
+# Recipe:: default
+#
+# Copyright (C) 2014 YOUR_NAME
+#
+# All rights reserved - Do Not Redistribute
+#
+%w{sysstat iotop dstat}.each do |pkg|
+    package pkg do
+        action :install
+    end
+end
[from now] 2014/09/05 02:52:26

diff --git a/Berksfile.lock b/Berksfile.lock
deleted file mode 100644
index b6b9edb..0000000
--- a/Berksfile.lock
+++ /dev/null
@@ -1,15 +0,0 @@
-DEPENDENCIES
-  my-base
-    path: site-cookbooks/my-base
-
-GRAPH
-  build-essential (2.0.6)
-  my-base (0.1.0)
-    python (>= 0.0.0)
-    yum-epel (= 0.5.0)
-  python (1.4.6)
-    build-essential (>= 0.0.0)
-    yum-epel (>= 0.0.0)
-  yum (3.3.0)
-  yum-epel (0.5.0)
-    yum (~> 3.0)