Skip to content

Instantly share code, notes, and snippets.

@sit
Created May 2, 2013 16:16

Revisions

  1. sit created this gist May 2, 2013.
    16 changes: 16 additions & 0 deletions Berksfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    site :opscode

    # Suck in all cookbooks in local chef-repo
    Dir.entries("cookbooks").each do |cookbook_name|
    next if cookbook_name.starts_with?('.')
    cookbook_dir = "cookbooks/#{cookbook_name}"
    next unless File.directory?(cookbook_dir)
    cookbook cookbook_name, path: cookbook_dir
    end


    # Add your cookbooks here as per http://berkshelf.com/
    # cookbook 'build-essential'
    18 changes: 18 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    Vagrant.configure("2") do |config|
    config.vm.box = "precise64"
    config.vm.box_url = "http://files.vagrantup.com/precise64.box"

    config.berkshelf.enabled = true

    config.vm.provision :chef_solo do |chef|
    chef.data_bags_path = "data_bags"
    chef.roles_path = "roles"

    # Set your role or Recipes here as documented at
    # http://docs.vagrantup.com/v2/provisioning/chef_solo.html
    # chef.add_recipe "build-essential"
    end
    end