Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

fb_limits (1) Versions 0.0.1

Installs/Configures /etc/security/limits.conf

Berkshelf
Policyfile
Knife
cookbook 'fb_limits', '~> 0.0.1'
cookbook 'fb_limits', '~> 0.0.1', :supermarket
knife cookbook site install fb_limits
knife cookbook site download fb_limits
README
Dependencies
Quality 50%

fb_limits Cookbook

This cookbook allows /etc/security/limits.conf to be changed. This controls limits for PAM sessions (via the pam_limits module). Note that on hosts using systemd, the limits set here will not apply to system services; you should set any defaults you want using node['fb_systemd']['system'].

Requirements

Attributes

  • node['fb_limits']

Usage

In limits.conf, each line describes a limit for a user in the form:

<domain>        <type>  <item>  <value>

Where: domain can be:

  • a user name
  • a group name, with @group syntax
  • the wildcard *, for default entry
  • the wildcard %, can be also used with %group syntax for maxlogin limit

type can have one of this two values:

  • soft for enforcing the soft limits
  • hard for enforcing hard limits

item can be one of the following:

  • core - limits the core file size (KB)
  • data - max data size (KB)
  • fsize - maximum filesize (KB)
  • memlock - max locked-in-memory address space (KB)
  • nofile - max number of open files
  • rss - max resident set size (KB)
  • stack - max stack size (KB)
  • cpu - max CPU time (MIN)
  • nproc - max number of processes
  • as - address space limit
  • maxlogins - max number of logins for this user
  • priority - the priority to run user process with
  • locks - max number of file locks the user can hold
  • sigpending - max number of pending signals
  • msgqueue - max memory used by POSIX message queues (bytes)

Example:

node.default['fb_limits']['DOMAIN'] = {
    'ITEM' => {
      'TYPE' => VALUE,
      'TYPE' => VALUE,
    }
}

By default we will assign:

root nofile soft 65535
root nofile hard 65535

Dependent cookbooks

fb_helpers >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.1 passed this metric

Foodcritic Metric
            

0.0.1 failed this metric

FC064: Ensure issues_url is set in metadata: fb_limits/metadata.rb:1
FC066: Ensure chef_version is set in metadata: fb_limits/metadata.rb:1
Run with Foodcritic Version 13.1.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.1 passed this metric

Publish Metric
            

0.0.1 passed this metric

Supported Platforms Metric
            

0.0.1 passed this metric

Testing File Metric
            

0.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number