vagrant-hitch 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vagrant-hitch.rb +4 -4
- data/spec/hitch_spec.rb +2 -2
- data/vagrant-hitch.gemspec +1 -1
- metadata +1 -1
data/lib/vagrant-hitch.rb
CHANGED
@@ -87,7 +87,7 @@ module VagrantHitch
|
|
87
87
|
def self.setup_provisioners(profile, node_config, config, config_dir)
|
88
88
|
# Setup Shell provisioner
|
89
89
|
if node_config.has_key?('shell')
|
90
|
-
node_config.deep_merge
|
90
|
+
node_config.deep_merge(@shell_provisioner_defaults) if !@shell_provisioner_defaults.nil?
|
91
91
|
config.vm.provision :shell do |shell|
|
92
92
|
shell.inline = node_config['shell']['inline'] if node_config['shell'].has_key?('inline')
|
93
93
|
shell.args = node_config['shell']['args'] if node_config['shell'].has_key?('args')
|
@@ -98,7 +98,7 @@ module VagrantHitch
|
|
98
98
|
# Setup Puppet Provisioner
|
99
99
|
if node_config.has_key?('puppet')
|
100
100
|
# Import any defaults set by the Puppet Provisioner
|
101
|
-
node_config.deep_merge
|
101
|
+
node_config.deep_merge(@puppet_provisioner_defaults) if !@puppet_provisioner_defaults.nil?
|
102
102
|
|
103
103
|
config.vm.provision :puppet do |puppet|
|
104
104
|
puppet.module_path = node_config['puppet']['modules']
|
@@ -125,7 +125,7 @@ module VagrantHitch
|
|
125
125
|
# Setup Chef Provisioner
|
126
126
|
if node_config.has_key?('chef')
|
127
127
|
# Import any defaults set by the Chef Provisioner
|
128
|
-
node_config.deep_merge
|
128
|
+
node_config.deep_merge(@chef_provisioner_defaults) if !@chef_provisioner_defaults.nil?
|
129
129
|
|
130
130
|
config.vm.provision :chef_solo do |chef|
|
131
131
|
chef.log_level = node_config['chef']['log_level'].to_sym
|
@@ -139,7 +139,7 @@ module VagrantHitch
|
|
139
139
|
# Setup Puppet Server Provisioner
|
140
140
|
if node_config.has_key?('puppet_server')
|
141
141
|
# Import any defaults set by the Puppet Server Provisioner
|
142
|
-
node_config.deep_merge
|
142
|
+
node_config.deep_merge(@puppet_server_provisioner_defaults) if !@puppet_server_provisioner_defaults.nil?
|
143
143
|
|
144
144
|
config.vm.provision :puppet_server do |puppet|
|
145
145
|
puppet.puppet_server = node_config['puppet_server']['server']
|
data/spec/hitch_spec.rb
CHANGED
@@ -5,7 +5,7 @@ require File.join(File.dirname(__FILE__),'..','/lib/vagrant-hitch')
|
|
5
5
|
describe 'Hash' do
|
6
6
|
let(:a) { {:string => "a", :array => [ 0,1,2 ], :hash => { :one => '1', :two => '2' } } }
|
7
7
|
let(:b) { {:string => "b", :array => [ 3,4,5 ], :hash => { :three => '3', :four => '4' } } }
|
8
|
-
let(:ab) { {:string => "
|
8
|
+
let(:ab) { {:string => "a", :array => [0,1,2,3,4,5 ], :hash => {:one => '1', :two => '2', :three => '3', :four => '4' } } }
|
9
9
|
|
10
10
|
it 'Hashes should have deep merge available' do
|
11
11
|
a.should respond_to(:deep_merge)
|
@@ -13,7 +13,7 @@ describe 'Hash' do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it 'merges should work as expected' do
|
16
|
-
a.deep_merge
|
16
|
+
a.deep_merge(b).should eql(ab)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
data/vagrant-hitch.gemspec
CHANGED