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

spinen-autolog (1) Versions 0.2.0

Installs/Configures autolog

Berkshelf/Librarian
Policyfile
Knife
cookbook 'spinen-autolog', '~> 0.2.0'
cookbook 'spinen-autolog', '~> 0.2.0', :supermarket
knife cookbook site install spinen-autolog
knife cookbook site download spinen-autolog
README
Dependencies
Changelog
Quality 44%

spinen-autolog-cookbook

This cookbook installs and configures the autolog utility.

The autolog utility is managed by the /etc/autolog.conf configuration file. Configuration options are documented here

Supported Platforms

Ubuntu 14.04

Attributes

This cookbook only includes 2 attributes:

node['autolog']['nolostkill'] is by default true. This atrribute writes the line nolostkill at the end of the configuration file. Setting this attribute to false will eliminate that line.

node['autolog']['protected_users'] is an array of users you wish to exempt from being logged out. By default this includes only root. The vagrant recipe adds the vagrant user for vagrant VMs and is a simple example of how to add users to this array.

Usage::Recipes

spinen-autolog::default

Include spinen-autolog in your node's run_list:

{
  "run_list": [
    "recipe[spinen-autolog::default]"
  ]
}

### spinen-autolog::vagrant

Include spinen-autolog::vagrant in your node's run_list:

{
  "run_list": [
    "recipe[spinen-autolog::vagrant]"
  ]
}

This recipe will add the vagrant user as a protected user that does not get logged off when idle.

Usage::the autolog_line resource

The autolog_line resource enables a user to write any configuration line to the /etc/autolog.conf file. Lines will appear in the configuration file in the order they appear in the recipe.

The autolog_line default and only action is :create

The autolog_line resource takes two hash attributes:

The switches attribute is a hash of the available switches it is possible to set as documented in the autolog manpage. By default none of these switches are set.

The boolean_attributes attribute hash is a set of true/false attributes available to write in a configuration line. The author has tried to set sane defaults for these.

Example, from the default recipe:

everyone_switches = { idle: '10', grace: '60' }

autolog_line 'everyone' do
  switches everyone_switches
  action :create
end

Results in this line in the autolog.conf configuration file:

idle=10 grace=60 nohard nomail clear warn log

License and Authors

Author:: SPINEN (luke.reimer@spinen.com)

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of spinen-base

Collaborator Number Metric
            

0.2.0 failed this metric

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

Contributing File Metric
            

0.2.0 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 CONTRIBUTING.md file

Foodcritic Metric
            

0.2.0 failed this metric

FC064: Ensure issues_url is set in metadata: spinen-autolog/metadata.rb:1
FC065: Ensure source_url is set in metadata: spinen-autolog/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spinen-autolog/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.2.0 passed this metric

No Binaries Metric
            

0.2.0 passed this metric

Publish Metric
            

0.2.0 passed this metric

Supported Platforms Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.0 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.2.0 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