knife-zero 1.13.2 → 1.14.0

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: 39e93687acfde9fe3fcf11e4f6c034356477e0f2
4
- data.tar.gz: 2c1926c70435e02528060d328e9e40e3143ccd11
3
+ metadata.gz: b2ca6c982be1fa5404e37c73f80bca74ffb5b5da
4
+ data.tar.gz: 38b7857bd2a8511bf6c6212b98325819f9f62123
5
5
  SHA512:
6
- metadata.gz: 22960e6035082264c89bfe44ccfd037a1a46ce8b49592b1c411063421ef82f81f79408af6b1b418b1ae3f9572a72bcde108487af5e90deb800cc8dd0a9be5b11
7
- data.tar.gz: b88e30d5977e75cf42aa70ea0e395116226884bd228f4fd49bee100446ef0e9da01d250d230ff3eee083fe322edfc08543361221a6acc070e85658ace5559e6c
6
+ metadata.gz: 73079ae9adb2719676ed8027e80eb93b7332cb3b04a34f47c3f06aba09cf96ecf18a13046da241fc7ec5684225b94a852e3b69a49473c8c7a799767d440ddfd5
7
+ data.tar.gz: 40d5da47577fc32dd1b828bab486c2576326b135dafef146fb6bd1dd0cdd744a0f11eec8de4d0a7c14262d3fedacd64a8353b82aebbe9d2496125933c2f6a45e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.14.0
6
+
7
+ - Change: support policy_document_native_api by default. #85
8
+ - this feature depends on chef-dk 0.11.0 or later.
9
+
5
10
  ## v1.13.2
6
11
 
7
12
  - Bug: `--named-run-list` did not be passed to remote chef-client.
data/README.md CHANGED
@@ -43,7 +43,7 @@ knife zero diagnose # show configuration from file
43
43
 
44
44
  ### Configuration file
45
45
 
46
- Relocated: [Configration | Knife-Zero Document](http://knife-zero.github.io/40_configration/)
46
+ Relocated: [Configration | Knife-Zero Document](http://knife-zero.github.io/40_configuration/)
47
47
 
48
48
  ### knife zero bootstrap | converge | diagnose
49
49
 
@@ -39,7 +39,7 @@ class Chef
39
39
  :default => nil
40
40
 
41
41
  ## For support policy_document_databag(old style)
42
- self.options[:policy_name][:description] = "Policy name to use (It'll be set as deployment_group=POLICY_NAME-local)"
42
+ self.options[:policy_name][:description] = "Policy name to use (It'll be set with policy_group=local)"
43
43
 
44
44
  def run
45
45
  ## Command hook before_bootstrap (After launched Chef-Zero)
@@ -29,12 +29,14 @@ class Chef
29
29
  end
30
30
  client_rb << white_lists.join("\n")
31
31
 
32
- ## For support policy_document_databag(old style)
32
+ ## For support policy_document_native_api
33
33
  if @config[:policy_name]
34
+ @config[:policy_group] = "local"
34
35
  client_rb << ["\n", "use_policyfile true",
35
36
  "versioned_cookbooks true",
36
- "policy_document_native_api false",
37
- %Q{deployment_group "#{@config[:policy_name]}-local"}].join("\n")
37
+ "policy_document_native_api true",
38
+ "policy_name #{@config[:policy_name]}",
39
+ "policy_group local"].join("\n")
38
40
  end
39
41
 
40
42
  if @config[:appendix_config]
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.13.2"
3
+ VERSION = "1.14.0"
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.13.2
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-13 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler