chef-metal-vagrant 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cf3e5266b41ba94c6ad92161be49215609d45fc
4
- data.tar.gz: cdaa7cbb8841af87db367a5538dba2ba09595b45
3
+ metadata.gz: a07ff0eedf9e89eba8989cdc17243d58432e1ec6
4
+ data.tar.gz: ff8ac29e8cd1f16e7205d3c0cea531be1834b4d6
5
5
  SHA512:
6
- metadata.gz: 5a348ac74589d6d5eefcb8d9378e0a969d3253159884c6500d7879afa692fbd884f8399d19d6f18d5e752a2db1eeff38df7db0848d13157d456d182101beca41
7
- data.tar.gz: c63fbbae630fe4b0bbad28d101cce3d8d4f32889cfc66a40ec8378d0f6db09424b181d73de1a3b37b7b8fadd7ede921a3181396d327e9f684bf02d1182144dd4
6
+ metadata.gz: e2a033f8c623251ed6e9009dc673f3371bd748ea871710c7921c647d065b56e50efe3a039e56bdc5bb5c9050174778157457ab2c4c21da5fc4f751fbdc43eaf8
7
+ data.tar.gz: ec2df65a5bf1ebcbeb402b69950a290e6d54b6352744b9174da134cc6328fc50429f413a7f781b1b4620ed961a26475bfdbe907035e8951479dcffcdca9574a4
@@ -90,7 +90,7 @@ module ChefMetalVagrant
90
90
  vm_name = node['name']
91
91
  old_provisioner_output = node['normal']['provisioner_output']
92
92
  node['normal']['provisioner_output'] = provisioner_output = {
93
- 'provisioner_url' => provisioner_url(action_handler),
93
+ 'provisioner_url' => provisioner_url(vm_name),
94
94
  'vm_name' => vm_name,
95
95
  'vm_file_path' => File.join(cluster_path, "#{vm_name}.vm")
96
96
  }
@@ -105,8 +105,8 @@ module ChefMetalVagrant
105
105
  # This is where the work gets done:
106
106
  # Create the .vm file, start the vm, and return the Machine
107
107
  #
108
- vm_file = create_vm_file(action_handler, vm_name, provisioner_output['vm_file_path'], provisioner_options)
109
- start_machine(action_handler, vm_name, vm_file, provisioner_output, provisioner_options['up_timeout'])
108
+ vm_file_updated = create_vm_file(action_handler, vm_name, provisioner_output['vm_file_path'], provisioner_options)
109
+ start_machine(action_handler, vm_name, vm_file_updated, provisioner_output, provisioner_options['up_timeout'])
110
110
  machine_for(node)
111
111
  end
112
112
 
@@ -174,8 +174,8 @@ module ChefMetalVagrant
174
174
 
175
175
  protected
176
176
 
177
- def provisioner_url(action_handler)
178
- "vagrant_cluster://#{action_handler.node['name']}#{cluster_path}"
177
+ def provisioner_url(vm_name)
178
+ "vagrant_cluster://#{vm_name}#{cluster_path}"
179
179
  end
180
180
 
181
181
  def create_vm_file(action_handler, vm_name, vm_file_path, provisioner_options)
@@ -199,7 +199,7 @@ module ChefMetalVagrant
199
199
  end
200
200
  end
201
201
 
202
- def start_machine(action_handler, vm_name, vm_file, provisioner_output, up_timeout)
202
+ def start_machine(action_handler, vm_name, vm_file_updated, provisioner_output, up_timeout)
203
203
  # Check current status of vm
204
204
  current_status = vagrant_status(vm_name)
205
205
  up_timeout ||= 10*60
@@ -213,7 +213,7 @@ module ChefMetalVagrant
213
213
  end
214
214
  parse_vagrant_up(result.stdout, provisioner_output)
215
215
  end
216
- elsif vm_file.updated_by_last_action?
216
+ elsif vm_file_updated
217
217
  # Run vagrant reload if vm is running and vm file changed
218
218
  action_handler.perform_action "run vagrant reload #{vm_name}" do
219
219
  result = shell_out("vagrant reload #{vm_name}", :cwd => cluster_path, :timeout => up_timeout)
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVagrant
2
- VERSION = '0.3'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-metal-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-01 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef