chef-apply 0.1.2 → 0.1.15

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
  SHA256:
3
- metadata.gz: 3a54dba100bb799ac0f8ca9be4be3ad58417503b8569e4a680253797aea1b224
4
- data.tar.gz: 5c9a8c1b67027704995776ffdab56cf4253ce71a78dbbc9b4d2b1b44123d1234
3
+ metadata.gz: 0df85558e397b290c68203bfc9aa7aaabcee645005f7823a674f65b85104995a
4
+ data.tar.gz: 7883623a75def593e7c9a0511902e710eef87cb3c2fc9ebf6029c5a2e2751cbd
5
5
  SHA512:
6
- metadata.gz: 03a2c835d18864aad23a3936ea2b05da1b0e7cb48dcfe0cf0adfa7373aef57a5dd56752c7b5571cb57e530642846ca208678523dfdf1996be4549decf4a1dadb
7
- data.tar.gz: 4684c9dd0a76a42774b80634784a611ccbb189ab7a55b78496d76f1c197ef1018190a6164e6cca7f90720f8d7aa9981caacb1a0810a599dcc988397e98c69d64
6
+ metadata.gz: a3b814a29f688ccbc498ea6c5c7f701952e1f64e117e3edafffb9e92d89eda04ab312a6341b183ed48d3426d0158b4c163855ad666b22dca47befb1fe8291bca
7
+ data.tar.gz: ffcf3eee2345331f815537d322aab9a51392a118e8a140c324e0a56c284198d3acfb2bcb105ad6f10d13e82672aed6ebed6450c84441490bafc054305b83953d
@@ -18,7 +18,7 @@ GIT
18
18
  PATH
19
19
  remote: .
20
20
  specs:
21
- chef-apply (0.1.2)
21
+ chef-apply (0.1.15)
22
22
  chef (>= 14.0)
23
23
  chef-dk (>= 3.0)
24
24
  chef-telemetry
@@ -38,13 +38,13 @@ GEM
38
38
  addressable (2.5.2)
39
39
  public_suffix (>= 2.0.2, < 4.0)
40
40
  ast (2.4.0)
41
- aws-sdk (2.11.86)
42
- aws-sdk-resources (= 2.11.86)
43
- aws-sdk-core (2.11.86)
41
+ aws-sdk (2.11.95)
42
+ aws-sdk-resources (= 2.11.95)
43
+ aws-sdk-core (2.11.95)
44
44
  aws-sigv4 (~> 1.0)
45
45
  jmespath (~> 1.0)
46
- aws-sdk-resources (2.11.86)
47
- aws-sdk-core (= 2.11.86)
46
+ aws-sdk-resources (2.11.95)
47
+ aws-sdk-core (= 2.11.95)
48
48
  aws-sigv4 (1.0.3)
49
49
  azure_mgmt_resources (0.16.0)
50
50
  ms_rest_azure (~> 0.10.0)
@@ -237,14 +237,14 @@ GEM
237
237
  mixlib-log
238
238
  mixlib-authentication (2.1.1)
239
239
  mixlib-cli (1.7.0)
240
- mixlib-config (2.2.12)
240
+ mixlib-config (2.2.13)
241
241
  tomlrb
242
242
  mixlib-install (3.11.2)
243
243
  mixlib-shellout
244
244
  mixlib-versioning
245
245
  thor
246
246
  mixlib-log (2.0.4)
247
- mixlib-shellout (2.3.2)
247
+ mixlib-shellout (2.4.0)
248
248
  mixlib-versioning (1.2.2)
249
249
  molinillo (0.6.5)
250
250
  ms_rest (0.7.2)
@@ -268,7 +268,7 @@ GEM
268
268
  net-ssh-multi (1.2.1)
269
269
  net-ssh (>= 2.6.5)
270
270
  net-ssh-gateway (>= 1.2.0)
271
- net-telnet (0.1.1)
271
+ net-telnet (0.2.0)
272
272
  nori (2.6.0)
273
273
  ohai (14.3.0)
274
274
  chef-config (>= 12.8, < 15)
@@ -304,9 +304,9 @@ GEM
304
304
  binding_of_caller (>= 0.7)
305
305
  pry (>= 0.9.11)
306
306
  public_suffix (3.0.2)
307
- r18n-core (3.0.4)
308
- r18n-desktop (3.0.4)
309
- r18n-core (= 3.0.4)
307
+ r18n-core (3.0.5)
308
+ r18n-desktop (3.0.5)
309
+ r18n-core (= 3.0.5)
310
310
  rack (2.0.5)
311
311
  rainbow (3.0.0)
312
312
  rake (12.3.1)
@@ -371,8 +371,8 @@ GEM
371
371
  toml-rb (1.1.1)
372
372
  citrus (~> 3.0, > 3.0)
373
373
  tomlrb (1.2.7)
374
- tty-color (0.4.2)
375
- tty-cursor (0.5.0)
374
+ tty-color (0.4.3)
375
+ tty-cursor (0.6.0)
376
376
  tty-spinner (0.8.0)
377
377
  tty-cursor (>= 0.5.0)
378
378
  unf (0.1.4)
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Chef Run
1
+ # Chef Apply
2
+ [![Gem Version](https://badge.fury.io/rb/chef-apply.svg)](https://badge.fury.io/rb/chef-apply)
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/chef_apply`.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ The ad-hoc execution tool for the Chef ecosystem.
6
5
 
7
6
  ## Installation
8
7
 
@@ -20,22 +19,38 @@ Or install it yourself as:
20
19
 
21
20
  $ gem install chef-apply
22
21
 
23
- ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ## Contributing/Development
24
+
25
+ Please read our [Community Contributions Guidelines](https://docs.chef.io/community_contributions.html), and ensure you are signing all your commits with DCO sign-off.
26
26
 
27
- ## Development
27
+ The general development process is:
28
28
 
29
- TODO: Write usage development here
29
+ 1. Fork this repo and clone it to your workstation.
30
+ 2. Create a feature branch for your change.
31
+ 3. Write code and tests.
32
+ 4. Push your feature branch to GitHub and open a pull request against master.
30
33
 
31
- ## Contributing
34
+ Once your repository is set up, you can start working on the code. We do utilize RSpec for test driven development, so you'll need to get a development environment running. Follow the above procedure ("Installing from Git") to get your local copy of the source running.
32
35
 
33
- TODO: Write usage contributing here
36
+ # License
34
37
 
35
- ## License
38
+ | | |
39
+ |:---------------------|:-----------------------------------------|
40
+ | **Copyright:** | Copyright 2018, Chef Software, Inc.
41
+ | **License:** | Apache License, Version 2.0
36
42
 
37
- The gem is available as open source under the terms of the [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0).
43
+ ```
44
+ Licensed under the Apache License, Version 2.0 (the "License");
45
+ you may not use this file except in compliance with the License.
46
+ You may obtain a copy of the License at
38
47
 
39
- ## Code of Conduct
48
+ http://www.apache.org/licenses/LICENSE-2.0
49
+
50
+ Unless required by applicable law or agreed to in writing, software
51
+ distributed under the License is distributed on an "AS IS" BASIS,
52
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ See the License for the specific language governing permissions and
54
+ limitations under the License.
55
+ ```
40
56
 
41
- TODO: Write usage code of conduct here
@@ -158,356 +158,32 @@ cli:
158
158
  connection_failed: "Connection failed: %1"
159
159
 
160
160
  status:
161
- generate_policyfile:
162
- generating: Generating local policyfile...
163
- success: Generated local policyfile
161
+ generate_temp_cookbook:
162
+ generating: Packaging cookbook...
163
+ success: Packaging cookbook... done!
164
+ generate_local_policy:
165
+ generating: Generating local policyfile...
166
+ exporting: Generating local policyfile... exporting...
167
+ success: Generating local policyfile... exporting... done!
164
168
  install_chef:
165
- installing: Installing Chef client version %1.
166
169
  checking_for_client: Checking for Chef client.
167
- upgrading: Upgrading Chef client from version %1 to %2.
170
+ verifying: Verifying Chef client installation.
168
171
  downloading: Downloading Chef client installer into local cache.
169
172
  uploading: Uploading Chef client installer to target.
170
- verifying: Verifying Chef client installation.
173
+ installing: Installing Chef client version %1.
174
+ upgrading: Upgrading Chef client from version %1 to %2.
171
175
  already_present: Chef client version %1 already installed on target.
172
176
  install_success: Successfully installed Chef client version %1
173
177
  upgrade_success: Successfully upgraded Chef client from version %1 to %2.
174
178
  failure: "An error occurred while installing Chef client: %1"
175
179
  converge:
176
- multi_header: "Converging targets:"
177
- converging_recipe: Converging local recipe %1 on target...
178
- converging_resource: Converging %1 on target...
180
+ header: !!pl
181
+ 1: Applying %2 from %3 to target.
182
+ n: Applying %2 from %3 to targets.
183
+ converging: Applying %1...
179
184
  creating_local_policy: Creating local policy...
180
185
  creating_remote_policy: Pushing remote policy to target...
181
186
  uploading_trusted_certs: Uploading local trusted certs to target...
182
- running_chef: Running Chef on target...
183
- success: "Successfully converged target!"
184
- failure: "Failed to converge target."
187
+ success: "Successfully converged %1."
188
+ failure: "Failed to converge %1."
185
189
  reboot: "Reboot scheduled on target."
186
-
187
- # Error definitions, usage Text.e.ERR999
188
- # General format:
189
- # First Line: brief description of the error
190
- # Second line: blank
191
- # Third+ : detailed description, max 76 characters per line
192
- errors:
193
- # Catch-all for the worst case
194
- UNKNOWN: An unknown error has occurred.
195
-
196
- # Installer action errors
197
- CHEFINS002: |
198
- The target does not have chef-client installed.
199
-
200
- This command is powered by the Chef client. In order to make use of it
201
- on this node, the Chef client must be installed first.
202
-
203
- Re-running this command without the '--no-install' flag will
204
- automatically perform the installation.
205
-
206
- CHEFINS003: |
207
- The target has an older version of Chef client installed.
208
-
209
- The target has version %1 installed, but this command
210
- requires a minimum version of %2.
211
-
212
- Please upgrade the Chef client on this node to version %2 or later.
213
-
214
- # Local errors trying to create policy to send to target
215
- CHEFPOLICY001: |
216
- Could not create local Policyfile bundle.
217
-
218
- The following error was reported:
219
-
220
- %1
221
-
222
- # Remote execution and file operation errors are prefixed CHEFRMT
223
- CHEFRMT001: |
224
- The command '%1' exited with return code '%2' on '%3'.
225
-
226
- The following error was reported:
227
-
228
- %4
229
-
230
- # Remote chef client run failure start here.
231
- CHEFCCR001: |
232
- Could not determine reason for converge failure.
233
-
234
- STDOUT (may be blank)
235
-
236
- %1
237
-
238
- STDERR (may be blank)
239
-
240
- %2
241
-
242
- An error occurred while converging the remote host.
243
- I was unable to retrieve the log file which would allow
244
- me to provide more information. Above is the output
245
- that occurred while trying to retrieve the remote log file.
246
-
247
- CHEFCCR002: |
248
- The converge of the remote host failed for the
249
- following reason:
250
-
251
- %1
252
-
253
- CHEFCCR003: |
254
- The action '%1' is not valid.
255
-
256
- Valid actions are:
257
-
258
- %2
259
-
260
- For more information, please consult the documentation
261
- for this resource:
262
-
263
- https://docs.chef.io/resource_reference.html
264
-
265
- CHEFCCR004: |
266
- A property value you provided is not valid:
267
-
268
- %1
269
-
270
- Please consult the documentation for properties
271
- supported by your resource and their valid values:
272
-
273
- https://docs.chef.io/resource_reference.html
274
-
275
- CHEFCCR005: |
276
- '%1' is not a valid Chef resource.
277
-
278
- Please consult the documentation for a list of valid resources:
279
-
280
- https://docs.chef.io/resource_reference.html
281
-
282
- CHEFCCR006: |
283
- '%1' is not a property of '%2'.
284
-
285
- Please consult the documentation for %2 for a list of
286
- valid properties:
287
-
288
- https://docs.chef.io/resource_reference.html
289
-
290
- CHEFCCR099: |
291
- The converge of the remote host failed.
292
-
293
- Please examine the log file for a detailed cause of failure.
294
-
295
- # Train-related errors (connectivy, auth failure, etc)
296
- # are prefixed CHEFTRN. Non-specific descendants of Train::Error
297
- # will resolve to CHEFTRN001, and we can add additional
298
- # more specific text as we need it.
299
- CHEFTRN001: |
300
- An error has occurred on the %1 connection to %2:
301
-
302
- %2.
303
-
304
- CHEFTRN002: |
305
- An remote error has occurred:
306
-
307
- %1.
308
-
309
- CHEFTRN003: |
310
- Password required for sudo.
311
-
312
- This target requires a password to perform sudo operations. Please provide a
313
- password using the --sudo-password option. For example if the sudo password is
314
- in the environment variable $CHEF_RUN_SUDO_PASSWORD, you could use:
315
-
316
- --sudo-password $CHEF_RUN_SUDO_PASSWORD
317
-
318
- CHEFTRN004: |
319
- Incorrect sudo password provided.
320
-
321
- Please ensure that the password you provided with "--sudo-password" is correct.
322
-
323
- CHEFTRN005: |
324
- sudo command '%1' not found.
325
-
326
- Please verify that the --sudo-command '%1' is valid
327
- and installed on this node.
328
-
329
- CHEFTRN006: |
330
- sudo requires tty on this system
331
-
332
- In order to continue, sudo must be configured to no longer require tty.
333
- You can do this by modifying /etc/sudoers:
334
-
335
- For all users:
336
- Defaults !requiretty
337
-
338
- Per-user:
339
- Defaults:username !requiretty
340
-
341
- CHEFTRN007: |
342
- No authentication methods available.
343
-
344
- Try...
345
- - Provide a password with "--password PASSWORD"
346
- - Provide a key with "-identity-file PATH/TO/FILE"
347
- - Enable ssh-agent and add keys
348
- - Add a host entry to your ssh configuration
349
-
350
- Additional instructions can be found in the troubleshooting documentation:
351
-
352
- https://www.chef.sh/docs/chef-workstation/troubleshooting/#error-code-cheftrn007
353
-
354
- CHEFTRN999: |
355
- Connection failed: %1
356
-
357
- The following error occured while attempting to connect and authenticate to the target.
358
-
359
- %1
360
-
361
- # CLI argument validation errors
362
- CHEFVAL002: |
363
- You must supply <TARGET[S]> and either <RESOURCE> and <RESOURCE_NAME> or <RECIPE>
364
-
365
- CHEFVAL003: |
366
- Property '%1' did not match the 'key=value' syntax required
367
-
368
- CHEFVAL004: |
369
- Please provide a recipe in the form 'path/to/recipe/file.rb',
370
- 'path/to/cookbook', 'cookbook_name' or 'cookbook_name::recipe_name'.
371
-
372
- You provided '%1'.
373
-
374
- CHEFVAL005: |
375
- The cookbook provided could not be loaded. Ensure it contains a valid
376
- 'metadata.rb'.
377
-
378
- Cookbook path is '%1'.
379
-
380
- CHEFVAL006: |
381
- Cookbook '%1' could not be found in any of the following directories
382
-
383
- %2
384
-
385
- CHEFVAL007: |
386
- There is no default recipe in cookbook '%2'. Please provide the name of the recipe to run, for example:
387
- %2::some_recipe
388
-
389
- Cookbook path is '%1'.
390
-
391
- CHEFVAL008: |
392
- There is no recipe named '%2' in the cookbook '%4', which I found at '%1'.
393
-
394
- Please include the name of the recipe you wish to converge on the remote target.
395
-
396
- These are the available recipes in '%4':
397
- %3
398
-
399
- CHEFVAL009: |
400
- File extension '%1' is unsupported. Currently recipes must be specified with a `.rb` extension.
401
-
402
- CHEFVAL010: |
403
- The flag '%1' does not exist.
404
-
405
- Available flags are:
406
- %2
407
-
408
- CHEFVAL011: |
409
- The protocol '%1' is not supported.
410
-
411
- Currently supported remote access protocols are:
412
-
413
- %2
414
-
415
- # General errors/unknown errors are handled with CHEFINT
416
- CHEFINT001: |
417
- An unexpected error has occurred:
418
-
419
- %1
420
-
421
- # Maps to: NameError
422
- CHEFNET001: |
423
- A network error occurred:
424
-
425
- %1
426
-
427
- Please verify the host name or address is correct and that the host is
428
- reachable before trying again.
429
-
430
- # Remote chef client run failure start here.
431
- CHEFUPL003: |
432
- Uploading config to target failed.
433
-
434
- CHEFUPL004: |
435
- Uploading handler to target failed.
436
-
437
- CHEFUPL005: |
438
- Uploading policy bundle to target failed.
439
-
440
- # Maps to: SSL::SSLError with message text indicating verification failure
441
- CHEFNET002: |
442
- SSL host verification failed.
443
-
444
- I could not verify the identity of the remote host.
445
-
446
- If you are certain that you are connecting to the correct host,
447
- you can specify the '--no-ssl-verify' option for this command, or
448
- make it the default by setting the following in your configuration:
449
-
450
- [connection.winrm]
451
- ssl_verify=false
452
-
453
- # Errors specifying target ranges
454
- CHEFRANGE001: |
455
- The target '%1' contains an invalid range.
456
-
457
- The range '%2' mixes alphabetic and numeric values.
458
- A range must be one or the other.
459
-
460
- CHEFRANGE002:
461
- The target '%1' contains too many ranges.
462
-
463
- A single target name can contain up two ranges.
464
-
465
- CHEFRANGE003: !!pl
466
- 1:
467
- The target provided resolves to too many hosts.
468
-
469
- At this time there is a limit of %2 hosts in a single operation.
470
- n:
471
- The targets provided resolve to too many hosts.
472
-
473
- At this time there is a limit of %2 hosts in a single operation.
474
-
475
- # Errors related to multi-target execution
476
- CHEFMULTI001: |
477
- One or more actions has failed.
478
-
479
- A complete list of failures and possible resolutions can
480
- be found in the file below:
481
-
482
- %1
483
-
484
- # Errors relating to target state:
485
- CHEFTARG001: |
486
- '%1' is not a supported target operating system at this time.
487
-
488
- We plan to support a range of target operating systems,
489
- but during this targeted beta we are constraining our efforts
490
- to Windows and Linux.
491
-
492
- footer:
493
- both: |
494
- If you are not able to resolve this issue, please contact Chef support
495
- at beta@chef.io and include the log file and stack trace from the
496
- locations below:
497
-
498
- %1
499
- %2
500
-
501
- log_only: |
502
- If you are not able to resolve this issue, please contact Chef support
503
- at beta@chef.io and include the log file from the location below:
504
- %1
505
-
506
- stack_only: |
507
- If you are not able to resolve this issue, please contact Chef support
508
- at beta@chef.io and include the stack trace from the location below:
509
- %1
510
-
511
- neither: |
512
- If you are not able to resolve this issue, please contact Chef support
513
- at beta@chef.io