Skip to content

Instantly share code, notes, and snippets.

@emyl
Created February 14, 2014 16:29
Show Gist options
  • Select an option

  • Save emyl/9004230 to your computer and use it in GitHub Desktop.

Select an option

Save emyl/9004230 to your computer and use it in GitHub Desktop.
djenkins Vagrantfile
require "json"
Vagrant.configure("2") do |config|
config.vm.define "djenkins" do |djenkins|
djenkins.vm.box = "raring64_chef11"
djenkins.vm.box_url = "http://goo.gl/Y4aRr"
# Configuration for vagrant-omnibus plugin
djenkins.omnibus.chef_version = :latest
# Configuration for Digital Ocean provider plugin
djenkins.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = "~/.ssh/id_rsa"
override.vm.box = "digital_ocean"
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.client_id = "YOUR CLIENT ID"
provider.api_key = "YOUR API KEY"
end
# Configuration for chef-solo provisioner
djenkins.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = ["cookbooks", "vendor/cookbooks"]
chef.json = JSON.parse(File.read("dna.json"))
end
end
end
@marti1125
Copy link

YOUR CLIENT ID where is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment