knife-windows 1.0.0.rc.2 → 1.0.0

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: 1fdf254f2f79f700e43b3d75f73d3e4649a739bb
4
- data.tar.gz: e677b1683e3f7f1487ac36e1d411c96cc83157e3
3
+ metadata.gz: b8379925d2d838d0a7aa4eb8272d76b552b79959
4
+ data.tar.gz: 5a49c146219b795d55dffeda41fa81b79942bcb6
5
5
  SHA512:
6
- metadata.gz: 93d731e54802e7675980228efa3ccca1f55000c6dab01d9f9301258e4e72558d3a7374a98a39214a7d0e952a217bb0790c5b57fb6335dec902fce11340aa2b01
7
- data.tar.gz: 1e21ba7c1dbeec72ac8396fb16ce64de8c180e913a8ba77158567cc9df92efb911e06b31281b4a1589a2645d53aaa0b77fd3ff0b7ab2a3bdc9bf5cf3274bc22b
6
+ metadata.gz: 78319d369c8c9cdb1c5f87e3010d6468ff17c898b71e1c2a6d75930ce539fce5f44541293113f26a34b0cf8dd960372f5cbe22db1157aefc191e0ba012c3ef73
7
+ data.tar.gz: aeda179f22c1036fc9f90a8e9cfdbdfebeb72e466b9c5713de574bdc0b48394b8c92306e875b16026d1d689b45a8b16cac91910ff34f7be7534fbcba91106c9a
data/CHANGELOG.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # knife-windows Change Log
2
2
 
3
- ## Unreleased changes
3
+ ## Release 1.0.0
4
4
 
5
+ * [knife-windows #281](https://github.com/chef/knife-windows/pull/281) Prevent unencrypted negotiate auth, automatically prefix local usernames with '.' for negotiate
6
+ * [knife-windows #275](https://github.com/chef/knife-windows/pull/275) Added bootstrap\_install\_command option in parity with knife bootstrap
5
7
  * [knife-windows #240](https://github.com/chef/knife-windows/pull/240) Change kerberos keytab short option to -T to resolve conflict
6
8
  * [knife-windows #232](https://github.com/chef/knife-windows/pull/232) Adding --hint option to bootstrap
7
9
  * [knife-windows #227](https://github.com/chef/knife-windows/issues/227) Exception: NoMethodError: undefined method 'gsub' for false:FalseClass
data/DOC_CHANGES.md CHANGED
@@ -7,6 +7,22 @@ Description of the required change.
7
7
  -->
8
8
  # knife-windows 1.0.0 doc changes
9
9
 
10
+ ### New bootstrap download and installation options
11
+ The following commands enable alternate ways to download and install
12
+ Chef Client during bootstrap:
13
+
14
+ * `--msi-url URL`: Optional. Used to override the location from which Chef
15
+ Client is downloaded. If not specified, Chef Client is downloaded
16
+ from the Internet -- this option allows downloading from a private network
17
+ location for instance.
18
+ * `--install-as-service`: Optional. Install chef-client as a Windows service
19
+ * `--bootstrap-install-command`: Optional. Instead of downloading Chef
20
+ Client and installing it using a default installation command,
21
+ bootstrap will invoke this command. If an image already has
22
+ Chef Client installed, this command can be specified as empty
23
+ (`''`), in which case no installation will be done and the rest of
24
+ bootstrap will proceed as if it's already installed.
25
+
10
26
  ### WinRM default port default change
11
27
  The `winrm_port` option specifies the TCP port on the remote system to which
12
28
  to connect for WinRM communication for `knife-windows` commands that use
data/README.md CHANGED
@@ -237,13 +237,16 @@ which the second command can access it.
237
237
 
238
238
  See previous sections for additional details of the `windows cert generate`, `windows cert install` and `windows listener create` subcommands.
239
239
 
240
- ##### Configure SSL using *PowerShell 4.0 or later*
240
+ ##### Configure SSL using *Windows Server 2012 or later*
241
241
  The following PowerShell commands may be used to create an SSL WinRM
242
- listener with a self-signed certificate:
242
+ listener with a self-signed certificate on Windows 2012R2 or later systems:
243
243
 
244
244
  ```powershell
245
- $cert = New-SelfSignedCertificate -Subject 'myserver.mydomain.org' -Type SSLServerAuthentication -FriendlyName WinRMCert
245
+ $cert = New-SelfSignedCertificate -DnsName 'myserver.mydomain.org' -CertStoreLocation Cert:\LocalMachine\My
246
246
  new-item -address * -force -path wsman:\localhost\listener -port 5986 -hostname ($cert.subject -split '=')[1] -transport https -certificatethumbprint $cert.Thumbprint
247
+ # Open the firewall for 5986, the default WinRM SSL port
248
+ netsh advfirewall firewall set rule name="Windows Remote Management (HTTPS-In)" profile=public protocol=tcp localport=5986 remoteip=localsubnet new remoteip=any
249
+
247
250
  ```
248
251
 
249
252
  Note that the first command which uses the `New-SelfSignedCertificate`
data/RELEASE_NOTES.md CHANGED
@@ -8,13 +8,18 @@ Details about the thing that changed that needs to get included in the Release N
8
8
  -->
9
9
  # knife-windows 1.0.0 release notes:
10
10
  This release of knife-windows includes new features to improve authentication,
11
- simplify use of the WinRM SSL transport, and addresses compatibility issues with Chef Client 12.0.
11
+ simplify use of the WinRM SSL transport, install and download Chef
12
+ Client during bootstrap, and addresses compatibility issues with Chef Client 12.0.
12
13
 
13
14
  You can install the new features using the `gem` command:
14
15
 
15
16
  gem install knife-windows
16
17
 
17
- Due to dependency conflicts, to use knife-windows 1.0.0+ with ChefDK 0.6.2, you must also upgrade chef-provisioning to 1.2.0+ and update the line referencing chef-provisioning in c:\opscode\chefdk\bin\chef. ChefDK 0.7.0+ will include the latest versions of both knife-windows and chef-provisioning.
18
+ Due to dependency conflicts, to use knife-windows 1.0.0+ with ChefDK
19
+ 0.6.2, you must also upgrade chef-provisioning to 1.2.0+ and update
20
+ the line referencing chef-provisioning in
21
+ `c:\opscode\chefdk\bin\chef`. To avoid this, use ChefDk 0.7.0 or later
22
+ with this version of `knife-windows`.
18
23
 
19
24
  chef gem install knife-windows
20
25
  chef gem install chef-provisioning
@@ -58,20 +63,18 @@ The short option flag for --keytab-file is now -T to fix a conflict with the --i
58
63
  Creates a WinRM SSL listener on a Windows system
59
64
  * Added `--hint` option for creating Ohai hints on bootstrap
60
65
  * Validatorless bootstrapping is now supported
61
- * New `--install-as-service` option will have Chef Client be installed as a service on bootstrap
66
+ * New `--bootstrap-install-command` option allows an alternate command
67
+ to be used to install Chef Client
68
+ * New `--install-as-service` option will have Chef Client be installed
69
+ as a Windows service on bootstrap
62
70
  * Added `--msi_url` option for providing an alternate URL to the Chef Client installation package
63
- * `knife wsman test` subcommaned:
64
- Verifies winrm functionality on a remote system, e.g. `knife wsman test 192.168.1.10 -m --winrm-transport ssl`
65
-
71
+ * `knife wsman test` subcommand:
72
+ Verifies winrm functionality on a remote system, e.g. `knife wsman
73
+ test 192.168.1.10 -m --winrm-transport ssl`
74
+
66
75
  ## Issues fixed in knife-windows 1.0.0
67
- * [knife-windows #159](https://github.com/chef/knife-windows/issues/159) `winrm_port` option should default to 5986 if `winrm_transport` option is `ssl`
68
- * [knife-windows #139](https://github.com/chef/knife-windows/issues/139) Force dev dependency on Chef 11 for test scenarios to avoid Ohai 8 conflict on Ruby 1.9.x
69
- * [knife-windows #133](https://github.com/chef/knife-windows/issues/133) Bootstrap failure -- unable to validate SSL chef server endpoints
70
- * [knife-windows #125](https://github.com/chef/knife-windows/issues/125) knife-windows should use PowerShell first before cscript to download the Chef Client msi
71
- * [knife-windows #92](https://github.com/chef/knife-windows/issues/92) EventMachine issue: knife bootstrap windows winrm error
72
- * [knife-windows #94](https://github.com/chef/knife-windows/issues/94) Remove Eventmachine dependency
73
- * [knife-windows #213](https://github.com/chef/knife-windows/pull/213) Search possibilities of HOME for bootstrap templates
74
- * [knife-windows #227](https://github.com/chef/knife-windows/issues/227) Exception: NoMethodError: undefined method 'gsub' for false:FalseClass
76
+ See the [knife-windows 1.0.0 CHANGELOG](https://github.com/chef/knife-windows/blob/1.0.0/CHANGELOG.md)
77
+ for the list of issues fixed in this release.
75
78
 
76
79
  ## knife-windows on RubyGems and Github
77
80
  https://rubygems.org/gems/knife-windows
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Windows
3
- VERSION = "1.0.0.rc.2"
3
+ VERSION = "1.0.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
@@ -147,7 +147,7 @@ describe 'Knife::Windows::Core msi download functionality for knife Windows winr
147
147
  end
148
148
  end
149
149
 
150
- describe "bootstrap_install_command functionality through WinRM protocol", :if_chef_11 => true do
150
+ describe "bootstrap_install_command functionality through WinRM protocol", :if_chef_11 => true, :chef_lt_12_5_only => true do
151
151
  context "bootstrap_install_command option is not specified" do
152
152
  let(:bootstrap) { Chef::Knife::BootstrapWindowsWinrm.new([]) }
153
153
  before do
@@ -181,7 +181,7 @@ describe "bootstrap_install_command functionality through WinRM protocol", :if_c
181
181
  end
182
182
  end
183
183
 
184
- describe "bootstrap_install_command functionality through SSH protocol", :if_chef_11 => true do
184
+ describe "bootstrap_install_command functionality through SSH protocol", :if_chef_11 => true, :chef_lt_12_5_only => true do
185
185
  context "bootstrap_install_command option is not specified" do
186
186
  let(:bootstrap) { Chef::Knife::BootstrapWindowsSsh.new([]) }
187
187
  before do
@@ -213,4 +213,4 @@ describe "bootstrap_install_command functionality through SSH protocol", :if_che
213
213
  Chef::Config[:knife].delete(:bootstrap_install_command)
214
214
  end
215
215
  end
216
- end
216
+ end
data/spec/spec_helper.rb CHANGED
@@ -80,7 +80,8 @@ RSpec.configure do |config|
80
80
  config.filter_run_excluding :windows_only => true unless windows?
81
81
  config.filter_run_excluding :windows_2012_only => true unless windows2012?
82
82
  config.filter_run_excluding :chef_gte_12_only => true unless chef_gte_12?
83
- config.filter_run_excluding :chef_gte_12_5_only => true unless chef_gte_12_5?
83
+ config.filter_run_excluding :chef_gte_12_5_only => true unless chef_gte_12_5?
84
+ config.filter_run_excluding :chef_lt_12_5_only => true if chef_gte_12_5?
84
85
  config.filter_run_excluding :chef_lt_12_only => true unless chef_lt_12?
85
86
  config.filter_run_excluding :if_chef_11 => true if chef_eq_11?
86
87
  end
@@ -94,6 +94,8 @@ expected: #{expected}
94
94
  :use_sudo,
95
95
  :use_sudo_password,
96
96
  :encrypt, # irrelevant during bootstrap
97
+ :policy_name, # NYI, issue https://github.com/chef/knife-windows/issues/295
98
+ :policy_group, #https://github.com/chef/knife-windows/issues/295
97
99
  ]}
98
100
 
99
101
  # win_ignore: Options in windows that aren't relevant to core.
@@ -132,6 +134,8 @@ expected: #{expected}
132
134
  :use_sudo,
133
135
  :use_sudo_password,
134
136
  :encrypt, # irrelevant during bootstrap
137
+ :policy_name, # NYI, issue https://github.com/chef/knife-windows/issues/295
138
+ :policy_group, #https://github.com/chef/knife-windows/issues/295
135
139
  ]}
136
140
  # win_ignore: Options in windows that aren't relevant to core.
137
141
  let(:win_ignore) { [
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-windows
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Chisamore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: winrm
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: winrm-s
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Plugin that adds functionality to Chef's Knife CLI for configuring/interacting
@@ -74,9 +74,9 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
78
- - .rspec
79
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
80
80
  - CHANGELOG.md
81
81
  - DOC_CHANGES.md
82
82
  - Gemfile
@@ -133,17 +133,17 @@ require_paths:
133
133
  - lib
134
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.9.1
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>'
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: 1.3.1
143
+ version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.0.14
146
+ rubygems_version: 2.4.8
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Plugin that adds functionality to Chef's Knife CLI for configuring/interacting
@@ -166,3 +166,4 @@ test_files:
166
166
  - spec/unit/knife/winrm_session_spec.rb
167
167
  - spec/unit/knife/winrm_spec.rb
168
168
  - spec/unit/knife/wsman_test_spec.rb
169
+ has_rdoc: