Created
April 30, 2014 18:44
-
-
Save zanshin/651c8edf8e247041f273 to your computer and use it in GitHub Desktop.
test Vagrant file
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
| 1 # -*- mode: ruby -*-¬ | |
| 2 # vi: set ft=ruby :¬ | |
| 3 ¬ | |
| 4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!¬ | |
| 5 VAGRANTFILE_API_VERSION = "2"¬ | |
| 6 ¬ | |
| 7 Vagrant.require_version ">= 1.5.0"¬ | |
| 8 ¬ | |
| 9 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|¬ | |
| 10 config.vm.hostname = "test-cookbook-berkshelf"¬ | |
| 11 config.omnibus.chef_version = :latest¬ | |
| 12 config.vm.box = "opscode_ubuntu-12.04_provisionerless"¬ | |
| 13 config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"¬ | |
| 14 # config.vm.network :private_network, type: "dhcp"¬ | |
| 15 config.vm.network :private_network, ip: "33.33.33.10"⋅¬ | |
| 16 config.berkshelf.enabled = true¬ | |
| 17 ¬ | |
| 18 config.vm.provision :chef_solo do |chef|¬ | |
| 19 chef.json = {¬ | |
| 20 mysql: {¬ | |
| 21 server_root_password: 'rootpass',¬ | |
| 22 server_debian_password: 'debpass',¬ | |
| 23 server_repl_password: 'replpass'¬ | |
| 24 }¬ | |
| 25 }¬ | |
| 26 ¬ | |
| 27 chef.run_list = [¬ | |
| 28 "recipe[test_cookbook::default]"¬ | |
| 29 ]¬ | |
| 30 end¬ | |
| 31 end¬ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment