sous-chefs / chef-splunk

Development repository for the chef-splunk cookbook
https://supermarket.chef.io/cookbooks/chef-splunk
Apache License 2.0
75 stars 122 forks source link

chef-splunk installation failure due default_description as a property field #158

Closed dmalicia-fuze closed 4 years ago

dmalicia-fuze commented 4 years ago

Cookbook version

6.1.4

Chef-client version

14.3.37

Platform Details

centos7

Scenario:

Install chef-splunk

Steps to Reproduce:

Install cookbook which includes chef-splunk::default recipe

Expected Result:

chef-splunk to be installed without error.

Actual Result:

   ================================================================================
   Recipe Compile Error in /tmp/kitchen/cache/cookbooks/chef-splunk/resources/splunk_app.rb
   ================================================================================

   ArgumentError
   -------------
   Validation map has unknown check: default_description

   Cookbook Trace:
   ---------------
     /tmp/kitchen/cache/cookbooks/chef-splunk/resources/splunk_app.rb:32:in `class_from_file'

   Relevant File Content:
   ----------------------
   /tmp/kitchen/cache/cookbooks/chef-splunk/resources/splunk_app.rb:

    25:  property :cookbook, kind_of: String, default: nil
    26:  property :cookbook_file, kind_of: String, default: nil
    27:  property :installed, kind_of: [TrueClass, FalseClass, NilClass], default: false
    28:  property :local_file, kind_of: String, default: nil
    29:  property :remote_file, kind_of: String, default: nil
    30:  property :remote_directory, kind_of: String, default: nil
    31:  property :templates, kind_of: [Array, Hash], default: []
    32>> property :files_mode, [String, Integer, nil],
    33:            description: "The octal mode for a file.\n UNIX- and Linux-based systems: A quoted 3-5 character string that defines the octal mode that is passed to chmod. For example: '755', '0755', or 00755. If the value is specified as a quoted string, it works exactly as if the chmod command was passed. If the value is specified as an integer, prepend a zero (0) to the value to ensure that it is interpreted as an octal number. For example, to assign read, write, and execute rights for all users, use '0777' or '777'; for the same rights, plus the sticky bit, use 01777 or '1777'.\n Microsoft Windows: A quoted 3-5 character string that defines the octal mode that is translated into rights for Microsoft Windows security. For example: '755', '0755', or 00755. Values up to '0777' are allowed (no sticky bits) and mean the same in Microsoft Windows as they do in UNIX, where 4 equals GENERIC_READ, 2 equals GENERIC_WRITE, and 1 equals GENERIC_EXECUTE. This property cannot be used to set :full_control. This property has no effect if not specified, but when it and rights are both specified, the effects are cumulative.",
    34:            default_description: '0644 on *nix systems',
    35:            regex: /^\d{3,4}$/, default: nil
    36:  # template_variables is a Hash referencing
    37:  # each template named in the templates property, above, with each template having its
    38:  # unique set of variables and values
    39:  property :template_variables, kind_of: Hash, default: { 'default' => {} }
    40:  
    41:  action_class do

   System Info:
   ------------
   chef_version=14.3.37
   platform=centos
   platform_version=7.6.1810
   ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
   program_name=/opt/chef/bin/chef-client
   executable=/opt/chef/bin/chef-client

   Running handlers:
   [2020-03-29T16:39:10+00:00] ERROR: Running exception handlers
   [2020-03-29T16:39:10+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2020-03-29T16:39:10+00:00] ERROR: Exception handlers complete
   [2020-03-29T16:39:10+00:00] ERROR: Exception handlers complete
   Chef Client failed. 0 resources updated in 13 seconds
   [2020-03-29T16:39:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2020-03-29T16:39:10+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2020-03-29T16:39:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2020-03-29T16:39:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2020-03-29T16:39:10+00:00] FATAL: ArgumentError: Validation map has unknown check: default_description
   [2020-03-29T16:39:10+00:00] FATAL: ArgumentError: Validation map has unknown check: default_description