Created
February 14, 2014 16:29
-
-
Save emyl/9004230 to your computer and use it in GitHub Desktop.
djenkins Vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
YOUR CLIENT ID where is?