Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Add vagrant 2.0.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
websi committed Oct 5, 2017
1 parent 6244af7 commit 1cad002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- tasks around MySQL slow log
- add `utils:create_local_temp_directory` task
- support for dkdeploy-test_environment v2.0.0
- Vagrant 2.0.x support

### Fixed
- set group permissions for /var/www in Chef cookbook (Vagrant)
Expand Down
13 changes: 3 additions & 10 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ unless Vagrant.has_plugin?('vagrant-berkshelf')
abort
end

unless Vagrant.has_plugin?('vagrant-omnibus')
puts "Please install vagrant plugin vagrant-omnibus first\n"
puts " vagrant plugin install vagrant-omnibus\n\n"
puts "Exit vagrant\n\n"
abort
end

Vagrant.require_version '~> 1.8.1'
Vagrant.require_version '~> 2.0.0'
chef_version = '12.9.41'

Vagrant.configure(2) do |config|
Expand All @@ -23,15 +16,15 @@ Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.box_check_update = false
config.berkshelf.enabled = true
config.omnibus.chef_version = chef_version

config.vm.define('dkdeploy-core', primary: true) do |master_config|
master_config.vm.network 'private_network', ip: ip_address

# Chef settings
master_config.vm.provision :chef_solo do |chef|
chef.install = true
chef.channel = 'stable'
chef.version = chef_version
chef.install = false # omnibus does it already
chef.log_level = :info
chef.add_recipe 'dkdeploy-core'
end
Expand Down

0 comments on commit 1cad002

Please sign in to comment.