Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Vagrant vm (requires Vagrant 1.8)
- Loading branch information
1 parent
b934af1
commit 50aa90a
Showing
1,333 changed files
with
52,257 additions
and
15,835 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
# -*- mode: ruby -*- | ||
|
||
dir = File.dirname(File.expand_path(__FILE__)) | ||
|
||
require 'yaml' | ||
require "#{dir}/puphpet/ruby/deep_merge.rb" | ||
require "#{dir}/puphpet/ruby/puppet.rb" | ||
|
||
configValues = YAML.load_file("#{dir}/puphpet/config.yaml") | ||
|
||
provider = ENV['VAGRANT_DEFAULT_PROVIDER'] | ||
if File.file?("#{dir}/puphpet/config-#{provider}.yaml") | ||
custom = YAML.load_file("#{dir}/puphpet/config-#{provider}.yaml") | ||
configValues.deep_merge!(custom) | ||
end | ||
|
||
if File.file?("#{dir}/puphpet/config-custom.yaml") | ||
custom = YAML.load_file("#{dir}/puphpet/config-custom.yaml") | ||
configValues.deep_merge!(custom) | ||
end | ||
|
||
data = configValues['vagrantfile'] | ||
|
||
Vagrant.require_version '>= 1.6.0' | ||
Vagrant.require_version '>= 1.8.1' | ||
|
||
eval File.read("#{dir}/puphpet/vagrant/Vagrantfile-#{data['target']}") |
This file contains 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
This file contains 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
Oops, something went wrong.