chef-dk 3.6.57 → 3.7.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +54 -54
  4. data/Rakefile +6 -2
  5. data/chef-dk.gemspec +2 -2
  6. data/lib/chef-dk/cli.rb +1 -1
  7. data/lib/chef-dk/command/clean_policy_cookbooks.rb +1 -1
  8. data/lib/chef-dk/command/clean_policy_revisions.rb +1 -1
  9. data/lib/chef-dk/command/delete_policy.rb +1 -1
  10. data/lib/chef-dk/command/delete_policy_group.rb +1 -1
  11. data/lib/chef-dk/command/diff.rb +1 -1
  12. data/lib/chef-dk/command/export.rb +1 -1
  13. data/lib/chef-dk/command/generate.rb +1 -1
  14. data/lib/chef-dk/command/generator_commands/generator_generator.rb +1 -1
  15. data/lib/chef-dk/command/install.rb +1 -1
  16. data/lib/chef-dk/command/provision.rb +6 -3
  17. data/lib/chef-dk/command/push.rb +1 -1
  18. data/lib/chef-dk/command/push_archive.rb +1 -1
  19. data/lib/chef-dk/command/shell_init.rb +1 -1
  20. data/lib/chef-dk/command/show_policy.rb +1 -1
  21. data/lib/chef-dk/command/undelete.rb +1 -1
  22. data/lib/chef-dk/command/update.rb +1 -1
  23. data/lib/chef-dk/command/verify.rb +2 -2
  24. data/lib/chef-dk/generator.rb +4 -4
  25. data/lib/chef-dk/policyfile/git_lock_fetcher.rb +1 -1
  26. data/lib/chef-dk/policyfile/uploader.rb +1 -1
  27. data/lib/chef-dk/policyfile_services/export_repo.rb +2 -2
  28. data/lib/chef-dk/policyfile_services/push_archive.rb +1 -1
  29. data/lib/chef-dk/service_exception_inspectors/http.rb +1 -1
  30. data/lib/chef-dk/version.rb +1 -1
  31. data/spec/unit/cli_spec.rb +1 -1
  32. data/spec/unit/command/base_spec.rb +3 -3
  33. data/spec/unit/command/clean_policy_cookbooks_spec.rb +2 -2
  34. data/spec/unit/command/clean_policy_revisions_spec.rb +2 -2
  35. data/spec/unit/command/delete_policy_group_spec.rb +2 -2
  36. data/spec/unit/command/delete_policy_spec.rb +2 -2
  37. data/spec/unit/command/export_spec.rb +3 -3
  38. data/spec/unit/command/generate_spec.rb +1 -1
  39. data/spec/unit/command/generator_commands/build_cookbook_spec.rb +2 -2
  40. data/spec/unit/command/generator_commands/cookbook_spec.rb +15 -15
  41. data/spec/unit/command/generator_commands/generator_generator_spec.rb +1 -1
  42. data/spec/unit/command/generator_commands/policyfile_spec.rb +1 -1
  43. data/spec/unit/command/generator_commands/repo_spec.rb +3 -3
  44. data/spec/unit/command/install_spec.rb +2 -2
  45. data/spec/unit/command/provision_spec.rb +7 -7
  46. data/spec/unit/command/push_spec.rb +2 -2
  47. data/spec/unit/command/shell_init_spec.rb +5 -5
  48. data/spec/unit/command/show_policy_spec.rb +2 -2
  49. data/spec/unit/command/undelete_spec.rb +2 -2
  50. data/spec/unit/command/update_spec.rb +4 -4
  51. data/spec/unit/policyfile/chef_server_lock_fetcher_spec.rb +1 -1
  52. data/spec/unit/policyfile/comparison_base_spec.rb +1 -1
  53. data/spec/unit/policyfile/differ_spec.rb +8 -8
  54. data/spec/unit/policyfile/git_lock_fetcher_spec.rb +8 -8
  55. data/spec/unit/policyfile/local_lock_fetcher_spec.rb +1 -1
  56. data/spec/unit/policyfile/reports/upload_spec.rb +1 -1
  57. data/spec/unit/policyfile_demands_spec.rb +5 -5
  58. data/spec/unit/policyfile_evaluation_spec.rb +3 -3
  59. data/spec/unit/policyfile_lock_build_spec.rb +14 -14
  60. data/spec/unit/policyfile_lock_validation_spec.rb +13 -13
  61. data/spec/unit/policyfile_services/clean_policies_spec.rb +3 -3
  62. data/spec/unit/policyfile_services/export_repo_spec.rb +2 -2
  63. data/spec/unit/policyfile_services/install_spec.rb +1 -1
  64. data/spec/unit/policyfile_services/push_archive_spec.rb +2 -2
  65. data/spec/unit/policyfile_services/push_spec.rb +1 -1
  66. data/spec/unit/policyfile_services/show_policy_spec.rb +13 -13
  67. data/spec/unit/policyfile_services/undelete_spec.rb +1 -1
  68. data/spec/unit/policyfile_services/update_attributes_spec.rb +1 -1
  69. data/spec/unit/policyfile_services/update_spec.rb +1 -1
  70. data/spec/unit/service_exception_inspectors/http_spec.rb +2 -2
  71. metadata +9 -29
  72. data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -27
  73. data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -287
  74. data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -52
  75. data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -51
  76. data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
  77. data/acceptance/Gemfile +0 -21
  78. data/acceptance/Gemfile.lock +0 -335
  79. data/acceptance/README.md +0 -132
  80. data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
  81. data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
  82. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  83. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  84. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  85. data/acceptance/trivial/.kitchen.yml +0 -7
  86. data/acceptance/trivial/test/integration/chefdk-current-install/inspec/chef_client_spec.rb +0 -5
  87. data/tasks/announce.rb +0 -57
  88. data/tasks/bin/bundle-platform.bat +0 -2
  89. data/tasks/dependencies.rb +0 -56
  90. data/tasks/templates/prerelease.md.erb +0 -26
  91. data/tasks/templates/release.md.erb +0 -26
@@ -116,7 +116,7 @@ describe ChefDK::ServiceExceptionInspectors::HTTP do
116
116
 
117
117
  this is the request
118
118
 
119
- E
119
+ E
120
120
  expect(inspector.extended_error_info).to include(expected_request_string)
121
121
  end
122
122
 
@@ -129,7 +129,7 @@ E
129
129
 
130
130
 
131
131
  this is the response
132
- E
132
+ E
133
133
  expect(inspector.extended_error_info).to include(expected_response_string)
134
134
  end
135
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-dk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.57
4
+ version: 3.7.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel DeLeo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-27 00:00:00.000000000 Z
13
+ date: 2019-01-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli
@@ -92,22 +92,22 @@ dependencies:
92
92
  name: solve
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "<"
96
- - !ruby/object:Gem::Version
97
- version: '5.0'
98
95
  - - ">"
99
96
  - !ruby/object:Gem::Version
100
97
  version: '2.0'
98
+ - - "<"
99
+ - !ruby/object:Gem::Version
100
+ version: '5.0'
101
101
  type: :runtime
102
102
  prerelease: false
103
103
  version_requirements: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - "<"
106
- - !ruby/object:Gem::Version
107
- version: '5.0'
108
105
  - - ">"
109
106
  - !ruby/object:Gem::Version
110
107
  version: '2.0'
108
+ - - "<"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: addressable
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -240,21 +240,6 @@ files:
240
240
  - Gemfile.lock
241
241
  - LICENSE
242
242
  - Rakefile
243
- - acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml
244
- - acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml
245
- - acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml
246
- - acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb
247
- - acceptance/.shared/kitchen_acceptance/metadata.rb
248
- - acceptance/Gemfile
249
- - acceptance/Gemfile.lock
250
- - acceptance/README.md
251
- - acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore
252
- - acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb
253
- - acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb
254
- - acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb
255
- - acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb
256
- - acceptance/trivial/.kitchen.yml
257
- - acceptance/trivial/test/integration/chefdk-current-install/inspec/chef_client_spec.rb
258
243
  - bin/chef
259
244
  - chef-dk.gemspec
260
245
  - lib/chef-dk.rb
@@ -621,11 +606,6 @@ files:
621
606
  - spec/unit/service_exception_inspectors/base_spec.rb
622
607
  - spec/unit/service_exception_inspectors/http_spec.rb
623
608
  - spec/unit/shell_out_spec.rb
624
- - tasks/announce.rb
625
- - tasks/bin/bundle-platform.bat
626
- - tasks/dependencies.rb
627
- - tasks/templates/prerelease.md.erb
628
- - tasks/templates/release.md.erb
629
609
  - warning.txt
630
610
  homepage: https://www.chef.io/
631
611
  licenses:
@@ -656,7 +636,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
656
636
  version: '0'
657
637
  requirements: []
658
638
  rubyforge_project:
659
- rubygems_version: 2.7.6
639
+ rubygems_version: 2.7.8
660
640
  signing_key:
661
641
  specification_version: 4
662
642
  summary: A streamlined development and deployment workflow for Chef platform.
@@ -1,27 +0,0 @@
1
- # Not quite ready yet
2
-
3
- driver:
4
- name: digitalocean
5
- digitalocean_access_token: <%= ENV['DIGITALOCEAN_API_TOKEN'] %>
6
- region: <%= ENV['DIGITALOCEAN_REGION'] %>
7
- size: 2gb
8
- ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
9
- transport:
10
- ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
11
-
12
- provisioner:
13
- name: chef_zero
14
- product_name: chef
15
- product_version: latest
16
- channel: current
17
-
18
- platforms:
19
- <% %w(centos-6.5 centos-7.0
20
- fedora-21
21
- debian-8.1
22
- ubuntu-12.04 ubuntu-14.04 ubuntu-15.10
23
- ).each do |platform| %>
24
- - name: #{platform}
25
- driver_config:
26
- image: <%= "#{platform.gsub('.', '-')}-x64" %>
27
- <% end %>
@@ -1,287 +0,0 @@
1
- # Not quite ready yet
2
-
3
- <%
4
- def file_if_exists(path)
5
- path = File.expand_path(path)
6
- File.exist?(path) ? path : nil
7
- end
8
- %>
9
-
10
- driver:
11
- name: ec2
12
- tags:
13
- X-Project: chef-ci-acceptance
14
- aws_ssh_key_id: <%= ENV['AWS_SSH_KEY_ID'] || ENV['USER'] || ENV['USERNAME'] %>
15
- # test-specific stuff
16
- region: us-west-2
17
- subnet_id: subnet-19ac017c
18
- security_group_ids: ["sg-e401eb83", "sg-96274af3"]
19
- instance_type: m3.large
20
- # associate_public_ip: true # Don't enable public IP, as subnet specified is behind VPN
21
-
22
- transport:
23
- ssh_key: <%= file_if_exists("~/.ssh/#{ENV['AWS_SSH_KEY_ID'] || ENV['USER'] || ENV['USERNAME']}.pem") ||
24
- file_if_exists("~/.ssh/#{ENV['AWS_SSH_KEY_ID'] || ENV['USER'] || ENV['USERNAME']}") ||
25
- file_if_exists("~/.ssh/id_rsa") %>
26
-
27
- provisioner:
28
- name: chef_zero
29
- product_name: <%= ENV["KITCHEN_CHEF_PRODUCT"] %>
30
- product_version: <%= ENV["KITCHEN_CHEF_VERSION"] %>
31
- channel: <%= ENV["KITCHEN_CHEF_CHANNEL"] %>
32
- client_rb:
33
- audit_mode: :enabled
34
- attributes:
35
- chef_acceptance: "true"
36
- use_system_chef: "true"
37
-
38
- platforms:
39
- #
40
- # AIX
41
- #
42
- # - name: aix-6.1
43
- # - name: aix-7.1
44
- #
45
- # Debian
46
- #
47
- - name: debian-8
48
- driver:
49
- image_search:
50
- name: debian-jessie-*
51
- owner-id: "379101102735"
52
- architecture: x86_64
53
- virtualization-type: hvm
54
- block-device-mapping.volume-type: gp2
55
- image-type: machine
56
- transport:
57
- username: admin
58
- - name: debian-7
59
- driver:
60
- image_search:
61
- name: debian-wheezy-*
62
- owner-id: "379101102735"
63
- architecture: x86_64
64
- virtualization-type: hvm
65
- block-device-mapping.volume-type: standard
66
- image-type: machine
67
- transport:
68
- username: admin
69
- #
70
- # Ubuntu
71
- #
72
- - name: ubuntu-15.10
73
- driver:
74
- image_search:
75
- name: ubuntu/images/*/ubuntu-*-15.10-amd64-server-*
76
- owner-id: "099720109477"
77
- architecture: x86_64
78
- virtualization-type: hvm
79
- block-device-mapping.volume-type: gp2
80
- image-type: machine
81
- transport:
82
- username: ubuntu
83
- - name: ubuntu-14.04
84
- driver:
85
- image_search:
86
- name: ubuntu/images/*/ubuntu-*-14.04-*-server-*
87
- owner-id: "099720109477"
88
- architecture: x86_64
89
- virtualization-type: hvm
90
- block-device-mapping.volume-type: gp2
91
- image-type: machine
92
- transport:
93
- username: ubuntu
94
- - name: ubuntu-12.04
95
- driver:
96
- image_search:
97
- name: ubuntu/images/*/ubuntu-*-12.04-*-server-*
98
- owner-id: "099720109477"
99
- architecture: x86_64
100
- virtualization-type: hvm
101
- block-device-mapping.volume-type: gp2
102
- image-type: machine
103
- transport:
104
- username: ubuntu
105
- #
106
- # Red Hat Enterprise Linux
107
- #
108
- - name: el-7
109
- driver:
110
- image_search:
111
- name: RHEL-7.*
112
- owner-id: "309956199498"
113
- architecture: x86_64
114
- virtualization-type: hvm
115
- block-device-mapping.volume-type: gp2
116
- image-type: machine
117
- transport:
118
- username: ec2-user
119
- - name: el-6
120
- driver:
121
- image_search:
122
- name: RHEL-6.*
123
- owner-id: "309956199498"
124
- architecture: x86_64
125
- virtualization-type: hvm
126
- block-device-mapping.volume-type: gp2
127
- image-type: machine
128
- transport:
129
- username: ec2-user
130
- - name: el-5
131
- driver:
132
- image_search:
133
- name: RHEL-5.*
134
- owner-id: "309956199498"
135
- architecture: x86_64
136
- virtualization-type: paravirtual
137
- block-device-mapping.volume-type: gp2
138
- image-type: machine
139
- transport:
140
- username: ec2-user
141
- #
142
- # FreeBSD
143
- #
144
- - name: freebsd-10
145
- driver:
146
- image_search:
147
- name: FreeBSD/EC2 10.*-RELEASE*
148
- owner-id: "118940168514"
149
- architecture: x86_64
150
- virtualization-type: hvm
151
- block-device-mapping.volume-type: gp2
152
- image-type: machine
153
- transport:
154
- username: ec2-user
155
- - name: freebsd-9
156
- driver:
157
- image_search:
158
- name: FreeBSD/EC2 9.*-RELEASE*
159
- owner-id: "118940168514"
160
- architecture: x86_64
161
- virtualization-type: hvm
162
- block-device-mapping.volume-type: gp2
163
- image-type: machine
164
- transport:
165
- username: ec2-user
166
- - name: freebsd-8
167
- driver:
168
- image_search:
169
- name: FreeBSD/EC2 8.*-RELEASE*
170
- owner-id: "118940168514"
171
- architecture: x86_64
172
- virtualization-type: hvm
173
- block-device-mapping.volume-type: standard
174
- image-type: machine
175
- transport:
176
- username: ec2-user
177
- #
178
- # OS/X
179
- #
180
- # - name: mac_os_x-10.11
181
- # - name: mac_os_x-10.10
182
- # - name: mac_os_x-10.9
183
- # - name: mac_os_x-10.8
184
- #
185
- # Nexus???
186
- #
187
- # - name: nexus-7
188
- #
189
- # Solaris
190
- #
191
- # - name: solaris-11
192
- # - name: solaris-10
193
- #
194
- # Windows
195
- #
196
- - name: windows-2012r2
197
- driver:
198
- image_search:
199
- name: Windows_Server-2012-R2*-English-*-Base-*
200
- owner-alias: amazon
201
- architecture: x86_64
202
- virtualization-type: hvm
203
- block-device-mapping.volume-type: gp2
204
- image-type: machine
205
- user_data: |
206
- <powershell>
207
- $logfile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Logs\\kitchen-ec2.log"
208
- #PS Remoting and & winrm.cmd basic config
209
- Enable-PSRemoting -Force -SkipNetworkProfileCheck
210
- & winrm.cmd set winrm/config '@{MaxTimeoutms="1800000"}' >> $logfile
211
- & winrm.cmd set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}' >> $logfile
212
- & winrm.cmd set winrm/config/winrs '@{MaxShellsPerUser="50"}' >> $logfile
213
- #Server settings - support username/password login
214
- & winrm.cmd set winrm/config/service/auth '@{Basic="true"}' >> $logfile
215
- & winrm.cmd set winrm/config/service '@{AllowUnencrypted="true"}' >> $logfile
216
- & winrm.cmd set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}' >> $logfile
217
- #Firewall Config
218
- & netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any >> $logfile
219
- #Set script execution to unrestricted
220
- & Set-ExecutionPolicy Unrestricted -Force
221
- </powershell>
222
- transport:
223
- username: administrator
224
-
225
- - name: windows-2012r2
226
- provisioner:
227
- architecture: <%= ENV["KITCHEN_CHEF_WIN_ARCHITECTURE"] %>
228
- driver:
229
- image_search:
230
- name: Windows_Server-2012-RTM*-English-*-Base-*
231
- owner-alias: amazon
232
- architecture: x86_64
233
- virtualization-type: hvm
234
- block-device-mapping.volume-type: gp2
235
- image-type: machine
236
- transport:
237
- username: administrator
238
- - name: windows-2012r2
239
- provisioner:
240
- architecture: <%= ENV["KITCHEN_CHEF_WIN_ARCHITECTURE"] %>
241
- driver:
242
- image_search:
243
- name: Windows_Server-2008-R2*-English-*-Base-*
244
- owner-alias: amazon
245
- architecture: x86_64
246
- virtualization-type: hvm
247
- block-device-mapping.volume-type: gp2
248
- image-type: machine
249
- transport:
250
- username: administrator
251
- #
252
- # Centos
253
- #
254
- - name: centos-7
255
- driver:
256
- image_search:
257
- name: CentOS Linux 7 *
258
- owner-alias: aws-marketplace
259
- architecture: x86_64
260
- virtualization-type: hvm
261
- block-device-mapping.volume-type: standard
262
- image-type: machine
263
- transport:
264
- username: root
265
- - name: centos-6
266
- driver:
267
- image_search:
268
- name: CentOS-6.5-GA-*
269
- owner-alias: aws-marketplace
270
- architecture: x86_64
271
- virtualization-type: paravirtual
272
- block-device-mapping.volume-type: standard
273
- image-type: machine
274
- transport:
275
- username: root
276
- #
277
- # Fedora
278
- #
279
- - name: fedora-21
280
- driver:
281
- image_search:
282
- name: Fedora-Cloud-Base-21-*
283
- owner-id: "125523088429"
284
- architecture: x86_64
285
- virtualization-type: hvm
286
- block-device-mapping.volume-type: gp2
287
- image-type: machine
@@ -1,52 +0,0 @@
1
- driver:
2
- name: vagrant
3
- forward_agent: yes
4
- customize:
5
- cpus: 2
6
- memory: 1024
7
-
8
- provisioner:
9
- name: chef_zero
10
- product_name: <%= ENV["KITCHEN_CHEF_PRODUCT"] %>
11
- product_version: <%= ENV["KITCHEN_CHEF_VERSION"] %>
12
- channel: <%= ENV["KITCHEN_CHEF_CHANNEL"] %>
13
- client_rb:
14
- audit_mode: :enabled
15
- attributes:
16
- chef_acceptance: "true"
17
- use_system_chef: "true"
18
-
19
- platforms:
20
- <% %w(
21
- debian-8
22
- debian-7
23
- debian-6
24
- ubuntu-15.10
25
- ubuntu-14.04
26
- el-7
27
- el-6
28
- el-5
29
- freebsd-10
30
- freebsd-9
31
- fedora-21
32
- ).each do |platform| %>
33
- - name: <%= platform %>
34
- driver:
35
- box: opscode-<%= platform %>
36
- box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_<%= platform %>_chef-provisionerless.box
37
- <% end %>
38
- # freebsd-8
39
- # ubuntu-12.04
40
- # centos-7
41
- # centos-6
42
-
43
- <% %w(
44
- 2012r2
45
- 2012
46
- 2008r2
47
- ).each do |version| %>
48
- - name: windows-<%= version %>
49
- driver:
50
- box: chef/windows-server-<%= version %>-standard
51
- # URL is atlas
52
- <% end %>