Sous-Chefs-Boneyard / swap

Development repository for the swap cookbook
https://supermarket.chef.io/cookbooks/swap
Apache License 2.0
32 stars 33 forks source link

undefined method `SwapFile' for Chef::Resource:Class #49

Closed dk8996 closed 7 years ago

dk8996 commented 7 years ago

Cookbook version

Latest version 2.0.0

Chef-client version

11.10

Platform Details

Ubuntu 14.04 LTS (Opsworks on AWS)

Scenario:

We are getting the error below, this started happening in the last few days.

NoMethodError

undefined method `SwapFile' for Chef::Resource:Class

Cookbook Trace:

/var/lib/aws/opsworks/cache.stage2/cookbooks/swap/libraries/swapfile_provider.rb:29:in `load_current_resource'

Resource Declaration:

In /var/lib/aws/opsworks/cache.stage2/cookbooks/web/recipes/boxsetup.rb

3: swap_file '/mnt/swap' do 4: size 3072 # MBs 5: end 6:

tas50 commented 7 years ago

This cookbook requires chef 12.5 or later. You'll need to upgrade your client

dk8996 commented 7 years ago

What version of swap works with Chef 11.10?

tas50 commented 7 years ago

0.4

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.