clc-fork-chef-metal 0.11.2.alpha.3 → 0.12.1.alpha.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: 9ec413f4358d1d7601ba3ea0b49011c5b6fba587
4
- data.tar.gz: 08fdb9bb946c90ca6970d5ea0670ef02df177121
3
+ metadata.gz: 4ab0dfcf01d64e7867adf5fcb1a471d3b7754af4
4
+ data.tar.gz: 8afd4982fce7d3dce5c2ab3749b5731ba68e0995
5
5
  SHA512:
6
- metadata.gz: ea84e58f92073cef40e226373f3bf653cb9085104d662d11e83a0f6bd002b9e82353a733bac60fd377d390e7a9252ccb1ccd5c01f567c0baeff26757804f1987
7
- data.tar.gz: 791feebf3da5b714ac02ab0a67020c67c7ac5275226fed3719bebde2d06bbca6115ebec89cc8f41a6fdd90ed73ab1d5d01cbc59bcf0e5bb021e9ed409ce4a3d7
6
+ metadata.gz: 80c3ec5240a3b63ab65f7b2d3f2d8d16754e082ace4206566ead55419cfb22c659bd2ad2513aa5a30e132a57c63043809f76490adf52d6f363ebed7788d1173c
7
+ data.tar.gz: df2649567b1d3debeebd4b77bf4e223c5dc5f682588c9b1b39b337e8fb0e5128a41e20d1f0cf6dbd2f4da2e72e520022af72c9631112d169e8f912060416928e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Chef Metal Changelog
2
2
 
3
+ ## 0.12.1 (6/18/2014)
4
+
5
+ - fix machine_batch action :setup
6
+ - fix issue with default machine_batch names being non-unique across recipes
7
+
8
+ ## 0.12 (6/18/2014)
9
+
10
+ - Remove chef-metal-fog and chef-metal-vagrant as dependencies (install whatever things you want directly!)
11
+ - Fix ssl_verify_mode to work correctly when other HTTPS calls are made (@mwrock)
12
+ - Fix machine_file and machine_execute resources (@irvingpop)
13
+
3
14
  ## 0.11.2 (6/4/2014)
4
15
 
5
16
  - Fix issue where machines with different drivers could get default options from the global current driver
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Stories in Ready](https://badge.waffle.io/opscode/chef-metal.png?label=ready&title=Ready)](https://waffle.io/opscode/chef-metal)
1
2
  Chef Metal
2
3
  ==========
3
4
 
@@ -10,7 +11,7 @@ Date | Blog
10
11
  6/3/2014 | [machine_batch and parallelization](https://github.com/opscode/chef-metal/blob/master/docs/blogs/2012-05-28-machine_batch.html.markdown#chef-metal-parallelization)
11
12
  6/3/2014 | [Chef Metal, Configuration and Drivers](https://github.com/opscode/chef-metal/blob/master/docs/blogs/2012-05-22-new-driver-interface.html.markdown#chef-metal-configuration-and-drivers)
12
13
  3/4/2014 | [Chef Metal 0.2: Overview](http://www.getchef.com/blog/2014/03/04/chef-metal-0-2-release/) - this is a pretty good overview (though dated).
13
- 12/20/2014 | [Chef Metal Alpha](http://www.getchef.com/blog/2013/12/20/chef-metal-alpha/)
14
+ 12/20/2013 | [Chef Metal Alpha](http://www.getchef.com/blog/2013/12/20/chef-metal-alpha/)
14
15
 
15
16
  Try It Out
16
17
  ----------
@@ -24,7 +25,7 @@ HINT: chef-metal looks prettiest with chef 11.14 alpha. `gem install chef --pre
24
25
  To give it a spin, install Vagrant and VirtualBox and try this from the `chef-metal/docs/examples` directory:
25
26
 
26
27
  ```
27
- gem install chef-metal
28
+ gem install chef-metal chef-metal-vagrant
28
29
  export CHEF_DRIVER=vagrant
29
30
  chef-client -z vagrant_linux.rb simple.rb
30
31
  ```
@@ -36,7 +37,7 @@ This will create two vagrant precise64 linux boxes, "mario" and "luigi1", in `~/
36
37
  If you have an AWS account, you can spin up a machine there like this:
37
38
 
38
39
  ```
39
- gem install chef-metal
40
+ gem install chef-metal chef-metal-fog
40
41
  export CHEF_DRIVER=fog:AWS
41
42
  chef-client -z simple.rb
42
43
  ```
@@ -48,7 +49,7 @@ This will create two linux boxes in the AWS account referenced by your default p
48
49
  If you are on DigitalOcean and using the `tugboat` gem, you can do this:
49
50
 
50
51
  ```
51
- gem install chef-metal
52
+ gem install chef-metal chef-metal-fog
52
53
  export CHEF_DRIVER=fog:DigitalOcean
53
54
  chef-client -z simple.rb
54
55
  ```
@@ -68,7 +69,7 @@ chef-client -z destroy_all.rb
68
69
  What Is Chef Metal?
69
70
  -------------------
70
71
 
71
- Chef Metal has two major abstractions: the machine resource, anf drivers.
72
+ Chef Metal has two major abstractions: the machine resource, and drivers.
72
73
 
73
74
  ### The `machine` resource
74
75
 
@@ -234,4 +235,3 @@ Bugs and The Plan
234
235
  Please submit bugs, gripes and feature requests at [https://github.com/opscode/chef-metal/issues](https://twitter.com/jkeiser2), contact jkeiser on Twitter at @jkeiser2, email at [jkeiser@getchef.com](mailto:jkeiser@getchef.com)
235
236
 
236
237
  To contribute, just make a PR in the appropriate repo--also, make sure you've [signed the Chef Contributor License Agreement](https://secure.echosign.com/public/hostedForm?formid=PJIF5694K6L) (quick couple of minutes online), since this is going into core Chef eventually. It takes some time to process, so if you've just done it, let me know in the PR :) If you already signed this for a Chef contribution, you don't need to do so again--if you're not sure, you can check for your name [here](https://wiki.opscode.com/display/chef/Approved+Contributors)!
237
- Â
@@ -38,7 +38,7 @@ class Chef::Provider::MachineBatch < Chef::Provider::LWRPBase
38
38
  action :setup do
39
39
  with_ready_machines do |m|
40
40
  prefixed_handler = ChefMetal::AddPrefixActionHandler.new(action_handler, "[#{m[:spec].name}] ")
41
- machine[:machine].setup_convergence(prefixed_handler)
41
+ m[:machine].setup_convergence(prefixed_handler)
42
42
  m[:spec].save(prefixed_handler)
43
43
  Chef::Provider::Machine.upload_files(prefixed_handler, m[:machine], m[:files])
44
44
  end
@@ -39,12 +39,13 @@ class Chef
39
39
  end
40
40
  end
41
41
 
42
+ @@next_machine_batch_index = 0
43
+
42
44
  def machine_batch_default_name
43
- if @machine_batch_index
44
- @machine_batch_index += 1
45
- "default#{@machine_batch_index}"
45
+ @@next_machine_batch_index += 1
46
+ if @@next_machine_batch_index > 1
47
+ "default#{@@next_machine_batch_index}"
46
48
  else
47
- @machine_batch_index = 0
48
49
  "default"
49
50
  end
50
51
  end
@@ -65,6 +65,20 @@ $file.Close
65
65
  "'#{string.gsub("'", "''")}'"
66
66
  end
67
67
 
68
+ def available?
69
+ # If you can't pwd within 10 seconds, you can't pwd
70
+ execute('pwd', :timeout => 10)
71
+ true
72
+ rescue Timeout::Error, Errno::EHOSTUNREACH, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::ECONNRESET, Net::SSH::Disconnect
73
+ Chef::Log.debug("unavailable: network connection failed or broke: #{$!.inspect}")
74
+ disconnect
75
+ false
76
+ rescue Net::SSH::AuthenticationFailed, Net::SSH::HostKeyMismatch
77
+ Chef::Log.debug("unavailable: winrm authentication error: #{$!.inspect} ")
78
+ disconnect
79
+ false
80
+ end
81
+
68
82
  protected
69
83
 
70
84
  def session
@@ -1,3 +1,3 @@
1
1
  module ChefMetal
2
- VERSION = '0.11.2.alpha.3'
2
+ VERSION = '0.12.1.alpha.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-fork-chef-metal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2.alpha.3
4
+ version: 0.12.1.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
- - Matt Wrock
7
+ - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: winrm
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.1.3
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.1.3
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +137,7 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  description: A library for creating machines and infrastructures idempotently in Chef.
126
- email: matt.wrock@CenturyLinkCloud.com
140
+ email: jkeiser@opscode.com
127
141
  executables:
128
142
  - metal
129
143
  extensions: []