[chef] Re: Re: Limits Cookbook / limits.conf and limits.d configuration files


Chronological Thread 
  • From: Jordan Wesolowski < >
  • To:
  • Subject: [chef] Re: Re: Limits Cookbook / limits.conf and limits.d configuration files
  • Date: Wed, 22 Jul 2015 15:42:04 +0000 (UTC)

Mohammad,

Fabien is exactly right. This cookbook has no recipes, but instead only provides resources. I can provide a better example once I get to a computer, but for now try what Fabien outlined. The README.md should give a good example on how to use the provided resources.

Sent from Outlook

_____________________________
From: Fabien Delpierre < " x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1"> >
Sent: Wednesday, July 22, 2015 08:38
Subject: [chef] Re: Limits Cookbook / limits.conf and limits.d configuration files
To: chef < " x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3"> >


I'm not familiar with this cookbook and can't look at its inner workings in detail right now, but I see that it has no recipes/ folder, which tells me it just provides resources. It sounds like you added it to your node's run list, but the error you're getting makes sense since the cookbook has no recipes. All you should need to do is add a line like the below to the metadata.rb in your cookbook:
depends 'limits'
Then you will be able to use the things provided by the cookbook.

On Wed, Jul 22, 2015 at 11:24 AM, Mohammad Fattahian < "> > wrote:

Hi,

 

Can anybody help me to configure the ‘limits’ cookbook? Installed from https://github.com/jrwesolo/limits.git

 

I added the cookbook to my Chef Server but when I run chef-client on the node I get this error:

----------------------------------------------------------------------------------------------------------------------------------

Recipe Compile Error

================================================================================

 

 

Chef::Exceptions::RecipeNotFound

--------------------------------

could not find recipe default for cookbook limits

----------------------------------------------------------------------------------------------------------------------------------

 

Any idea how to control system limits.conf as well as limits.d configuration files?

 

Regards,

 

Mohammad

 







Archive powered by MHonArc 2.6.16.

§