knife-zero 1.15.2 → 1.15.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30765529147d0bfd82148ca0d57b8bc957e98392
4
- data.tar.gz: 0aa9d5f14811840d8c46a8345ef5c763bd7322b8
3
+ metadata.gz: f101736fd4259132c3bc58de4ebc0242cf4384f3
4
+ data.tar.gz: 4c792fe31836a9bd6ae261247ff64fa21949ec9a
5
5
  SHA512:
6
- metadata.gz: 479914f23b6d8018c02403fe7441c72dc2dd2aebf9b00c64e6c50e577d7e71b1537f5655d55b2be300cce6a37998c06da016e8d5ef32279b8ceb665d19338aaa
7
- data.tar.gz: b73672f8f5fff324a45f75fe88adecb0916c1ff88e098ed83331537c8de04bd45a42a2d962eee4f52bba90816ee621c317deef58b4fddfab6681b35bd25a1e12
6
+ metadata.gz: 3c239c00cf00bc9061238c8f6cfcc566f16a91c753c36bc92d056f557159c1904ba63ab05d8b54e7b473aafa65749dc515f72e569d50173dea3d5b88ee245fb4
7
+ data.tar.gz: 12518b6fe5f43e0f850d9c78f94c7dfa2cc4d265a5273717a781da037b01b3bb30f6de23f3548fec4da58d6ebf8d840a1ece868233f77984c4672feb6ed0f98d
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
 
5
5
  Empty.
6
+ ## v1.15.3
7
+
8
+ - [Bugfix] move overridden options of bootstrap into deps.
9
+ - The new change about policy_group breaks knife bootstrap when policies aren't used #92
6
10
 
7
11
  ## v1.15.2
8
12
 
@@ -10,19 +10,27 @@ class Chef
10
10
  require 'knife-zero/core/bootstrap_context'
11
11
  require 'knife-zero/bootstrap_ssh'
12
12
  Chef::Knife::BootstrapSsh.load_deps
13
+
14
+ self.options.delete :node_ssl_verify_mode
15
+ self.options.delete :node_verify_api_cert
16
+
17
+ ## Override to use nil by default. It should be create PR
18
+ option :ssh_user,
19
+ :short => "-x USERNAME",
20
+ :long => "--ssh-user USERNAME"
21
+
22
+ ## For support policy_document_databag(old style)
23
+ self.options[:policy_name][:description] = "Policy name to use (F.Y.I: Default policy_group=local)"
24
+
25
+ ## Set `local` to default policy_group
26
+ self.options[:policy_group][:description] = "Policy group name to use (--policy-name must also be given). use 'local' "
27
+ self.options[:policy_group][:default] = "local"
13
28
  end
14
29
 
15
30
  banner "knife zero bootstrap [SSH_USER@]FQDN (options)"
16
31
 
17
32
  ## Import from knife bootstrap except exclusions
18
33
  self.options = Bootstrap.options.merge(self.options)
19
- self.options.delete :node_ssl_verify_mode
20
- self.options.delete :node_verify_api_cert
21
-
22
- ## Override to use nil by default. It should be create PR
23
- option :ssh_user,
24
- :short => "-x USERNAME",
25
- :long => "--ssh-user USERNAME"
26
34
 
27
35
  option :bootstrap_converge,
28
36
  :long => "--[no-]converge",
@@ -37,13 +45,6 @@ class Chef
37
45
  :proc => lambda { |o| File.read(o) },
38
46
  :default => nil
39
47
 
40
- ## For support policy_document_databag(old style)
41
- self.options[:policy_name][:description] = "Policy name to use (F.Y.I: Default policy_group=local)"
42
-
43
- ## Set `local` to default policy_group
44
- self.options[:policy_group][:description] = "Policy group name to use (--policy-name must also be given). 'local' by default"
45
- self.options[:policy_group][:default] = "local"
46
-
47
48
  def run
48
49
  ## Command hook before_bootstrap (After launched Chef-Zero)
49
50
  if Chef::Config[:knife][:before_bootstrap]
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.15.2"
3
+ VERSION = "1.15.3"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.2
4
+ version: 1.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler