chef-provisioning 1.5.0 → 1.5.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: c9af2567c4ea25e723b6ba5f11a10fb37aadc6d9
4
- data.tar.gz: 171c144d04965d8bbadd1e8bdfb0740d56b987f5
3
+ metadata.gz: 61583af178b0e390bfb0d73e544ea1c28ae5ef8c
4
+ data.tar.gz: 1c5c95f663d16dc2f76652fb3e40844e8c986b47
5
5
  SHA512:
6
- metadata.gz: 19cd99cd3d7be8c998b42c62edb70c7124830bd608193fec6dcb5695e15e2ccfa5dfd2bc3125c4f683eb3c6ce6a273b4ad8661f384a683f4a3ad2395310742af
7
- data.tar.gz: a9ffd30e83bd04d7c78b6b17ae0b6ec47b819dd685647ebc242b0e9507e7649d68b3df5b19a7f25287afc0105f9df6d61cd3cccf8e09ae66fe64caf059ef76be
6
+ metadata.gz: 6df6459bd2fb26feec964e99318fc814a58cff4a878233c814793fe6ca1e11203744f849f89ed823842d06b1aecfb8ca175b65e11f4a55f2784ef1c434ea095b
7
+ data.tar.gz: b5255c3719f59705c8dbfe71801f9d309b79c291c5a1d73c7f5439cc1913d2a915617e54e37adf9c55d80366b0ac7165079f589d1142ed2af70764671003b9ea
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
3
- ## [1.5.0](https://github.com/chef/chef-provisioning/tree/1.5.0) (2015-10-23)
4
- [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.4.1...1.5.0)
3
+ ## [1.5.1](https://github.com/chef/chef-provisioning/tree/1.5.1) (2015-12-10)
4
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.5.0...1.5.1)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Require ResourceBuilder file before monkeypatching to ensure it is already defined [\#478](https://github.com/chef/chef-provisioning/pull/478) ([tyler-ball](https://github.com/tyler-ball))
9
+ - Ensure target directory exists when using write\_file with WinRM [\#471](https://github.com/chef/chef-provisioning/pull/471) ([xenolinguist](https://github.com/xenolinguist))
10
+
11
+ ## [v1.5.0](https://github.com/chef/chef-provisioning/tree/v1.5.0) (2015-10-27)
12
+ [Full Changelog](https://github.com/chef/chef-provisioning/compare/v1.4.1...v1.5.0)
5
13
 
6
14
  **Fixed bugs:**
7
15
 
@@ -700,7 +708,7 @@
700
708
 
701
709
  **Merged pull requests:**
702
710
 
703
- - New ohai hints feature allowing the creation hints. [\#38](https://github.com/chef/chef-provisioning/pull/38) ([ligaturee](https://github.com/ligaturee))
711
+ - New ohai hints feature allowing the creation hints. [\#38](https://github.com/chef/chef-provisioning/pull/38) ([ligature](https://github.com/ligature))
704
712
 
705
713
  ## [v0.8](https://github.com/chef/chef-provisioning/tree/v0.8) (2014-04-08)
706
714
  [Full Changelog](https://github.com/chef/chef-provisioning/compare/v0.7...v0.8)
@@ -738,7 +746,7 @@
738
746
 
739
747
  - Add owner, group and mode attributes to machine\_file [\#43](https://github.com/chef/chef-provisioning/pull/43) ([irvingpop](https://github.com/irvingpop))
740
748
  - Dt/driver surgery [\#36](https://github.com/chef/chef-provisioning/pull/36) ([jkeiser](https://github.com/jkeiser))
741
- - Ec2 fixes [\#27](https://github.com/chef/chef-provisioning/pull/27) ([ligaturee](https://github.com/ligaturee))
749
+ - Ec2 fixes [\#27](https://github.com/chef/chef-provisioning/pull/27) ([ligature](https://github.com/ligature))
742
750
 
743
751
  ## [v0.4](https://github.com/chef/chef-provisioning/tree/v0.4) (2014-03-29)
744
752
  [Full Changelog](https://github.com/chef/chef-provisioning/compare/v0.3.1...v0.4)
@@ -755,7 +763,7 @@
755
763
  - Fix typo 'pey-pair-name' -\> 'key-pair-name' [\#30](https://github.com/chef/chef-provisioning/pull/30) ([dafyddcrosby](https://github.com/dafyddcrosby))
756
764
  - Remove unused variable provisioner\_options [\#26](https://github.com/chef/chef-provisioning/pull/26) ([dafyddcrosby](https://github.com/dafyddcrosby))
757
765
  - Update README.md to show how to add per-machine provisioner options [\#25](https://github.com/chef/chef-provisioning/pull/25) ([dafyddcrosby](https://github.com/dafyddcrosby))
758
- - Added new private\_ip compute\_options attribute. [\#23](https://github.com/chef/chef-provisioning/pull/23) ([ligaturee](https://github.com/ligaturee))
766
+ - Added new private\_ip compute\_options attribute. [\#23](https://github.com/chef/chef-provisioning/pull/23) ([ligature](https://github.com/ligature))
759
767
  - double double escape escape to fix RHEL/CentOS platform\_version detection [\#22](https://github.com/chef/chef-provisioning/pull/22) ([irvingpop](https://github.com/irvingpop))
760
768
  - Initial Openstack support [\#15](https://github.com/chef/chef-provisioning/pull/15) ([cstewart87](https://github.com/cstewart87))
761
769
 
@@ -798,4 +806,4 @@
798
806
  ## [v0.1](https://github.com/chef/chef-provisioning/tree/v0.1) (2013-12-21)
799
807
 
800
808
 
801
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
809
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -195,6 +195,7 @@ with_machine_options({
195
195
  install_msi_url: "foo://bar.com"
196
196
  },
197
197
  ssh_username: "ubuntu", # Username to use for ssh and WinRM
198
+ ssh_gateway: "user@gateway", " SSH gateway configuration
198
199
  ssh_options: { # a list of options to Net::SSH.start
199
200
  :auth_methods => [ 'publickey' ], # DEFAULT
200
201
  :keys_only => true, # DEFAULT
@@ -311,12 +311,12 @@ end
311
311
 
312
312
  # In chef-provisioning we don't perform resource cloning
313
313
  # This fixes resource cloning when the ResourceBuilder is present
314
-
314
+ require 'chef/resource_builder' unless defined?(Chef::ResourceBuilder)
315
315
  class Chef
316
316
  class ResourceBuilder
317
317
  if defined?(:prior_resource)
318
318
  def prior_resource
319
- # NOOP
319
+ nil
320
320
  end
321
321
  end
322
322
  end
@@ -56,6 +56,7 @@ module Provisioning
56
56
  end
57
57
 
58
58
  def write_file(path, content)
59
+ execute("New-Item -Type Directory -Force -Path #{escape(::File.dirname(path))}").error!
59
60
  chunk_size = options[:chunk_size] || 1024
60
61
  # TODO if we could marshal this data directly, we wouldn't have to base64 or do this godawful slow stuff :(
61
62
  index = 0
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '1.5.0'
3
+ VERSION = '1.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.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: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh