diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7eb8a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +.vagrant +Berksfile.lock +*~ +*# +.#* +\#*# +.*.sw[a-z] +*.un~ +/cookbooks + +# Bundler +Gemfile.lock +bin/* +.bundle/* +.kitchen/ +.kitchen.local.yml diff --git a/.kitchen.yml b/.kitchen.yml new file mode 100644 index 0000000..2d2cb67 --- /dev/null +++ b/.kitchen.yml @@ -0,0 +1,33 @@ +--- +driver_plugin: vagrant +platforms: +- name: ubuntu-12.10 + driver_config: + box: canonical-ubuntu-12.10 + box_url: http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box + require_chef_omnibus: 11.4.0 +- name: ubuntu-12.04 + driver_config: + box: canonical-ubuntu-12.04 + box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box + require_chef_omnibus: 11.4.0 +- name: ubuntu-10.04 + driver_config: + box: opscode-ubuntu-10.04 + box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box + require_chef_omnibus: 11.4.0 +- name: centos-5.8 + driver_config: + box: opscode-centos-5.8 + box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box + require_chef_omnibus: 11.4.0 +- name: centos-6.3 + driver_config: + box: opscode-centos-6.3 + box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box + require_chef_omnibus: 11.4.0 +suites: +- name: default + run_list: + - recipe[python] + attributes: {} diff --git a/Berksfile b/Berksfile new file mode 100644 index 0000000..34a3b2d --- /dev/null +++ b/Berksfile @@ -0,0 +1,8 @@ +site :opscode + +metadata + +group :integration do + cookbook "apt" + cookbook "yum" +end diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4b2360a --- /dev/null +++ b/Gemfile @@ -0,0 +1,12 @@ +source 'https://rubygems.org' + +gem 'foodcritic' +gem 'berkshelf' +gem 'thor-foodcritic' +gem 'vagrant', '~> 1.0.6' + +group :integration do + gem 'test-kitchen', :git => "git://github.com/opscode/test-kitchen.git", :branch => '1.0' + gem 'kitchen-vagrant', :git => "git://github.com/opscode/kitchen-vagrant.git" + gem 'kitchen-ec2', :git => "git://github.com/opscode/kitchen-ec2.git" +end diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..907693b --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,6 @@ +require 'kitchen/vagrant' +require 'berkshelf/vagrant' + +Vagrant::Config.run do |config| + Kitchen::Vagrant.define_vms(config) +end