ncerny / chef_stack

4 stars 6 forks source link

`chef_client` resource raises an error without :validation_pem attribute defined #27

Closed brandocorp closed 7 years ago

brandocorp commented 7 years ago

When running the chef_client resource without providing an acceptable value for the :validation_pem attribute causes the chef-client run to fail with the following error:

           ================================================================================
           Error executing action `install` on resource 'chef_client[chef.services.com]'
           ================================================================================

           Chef::Exceptions::ValidationFailed
           ----------------------------------
           source is required

           Cookbook Trace:
           ---------------
           /tmp/kitchen/cache/cookbooks/chef_stack/resources/client.rb:108:in `block (2 levels) in class_from_file'
           /tmp/kitchen/cache/cookbooks/chef_stack/resources/client.rb:107:in `block in class_from_file'