sous-chefs / cron

Development repository for the cron cookbook
https://supermarket.chef.io/cookbooks/cron
Apache License 2.0
78 stars 100 forks source link

Seeing issue with the deployment on chef 12.22.1 after recent update to this cookbook #134

Closed vpilania closed 3 years ago

vpilania commented 3 years ago

:speaking_head: Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

:ghost: Brief Description

A clear and concise description of what the bug is.

Getting NoMethod Error -----> unified_mode true

:pancakes: Cookbook version

Version of the cookbook where you are encountering the issue. 7.0.0

:woman_cook: Chef-Infra Version

Version of chef-client in your environment. - 12.22.1

:tophat: Platform details

Operating system distribution and release version. Cloud provider if running in the cloud.

chef_version=12.22.1 platform=amazon platform_version=2018.03

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

:police_car: Expected behavior

A clear and concise description of what you expected to happen.

:heavy_plus_sign: Additional context

Getting this error from this morning

================================================================================ Recipe Compile Error in /var/chef/cache/cookbooks/cron/resources/access.rb

NoMethodError

undefined method `unified_mode' for # Cookbook Trace:

/var/chef/cache/cookbooks/cron/resources/access.rb:24:in `class_from_file' Relevant File Content:

/var/chef/cache/cookbooks/cron/resources/access.rb: 17: # Unless required by applicable law or agreed to in writing, software 18: # distributed under the License is distributed on an "AS IS" BASIS, 19: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20: # See the License for the specific language governing permissions and 21: # limitations under the License. 22: # 23: 24>> unified_mode true 25: 26: property :user, String, 27: name_property: true 28: 29: action :allow do 30: with_run_context :root do 31: edit_resource(:template, '/etc/cron.allow') do |new_resource| 32: source 'cron_manage.erb' 33: cookbook 'cron'

ramereth commented 3 years ago

Resolved in #135