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

Select Status

The swap cookbook has been deprecated

Author provided reason for deprecation:

The swap cookbook has been deprecated and is no longer being maintained by its authors. Use of the swap cookbook is no longer recommended.

RSS

swap (20) Versions 0.1.0

Manage swap and swapfiles with Chef

Policyfile
Berkshelf
Knife
cookbook 'swap', '= 0.1.0', :supermarket
cookbook 'swap', '= 0.1.0'
knife supermarket install swap
knife supermarket download swap
README
Dependencies
Quality -%

Swap LWRP

This cookbook provides an LWRP for easily creating and managing swap files.

Usage

Add a new swap:
ruby
swap_file '/mnt/swap' do
size 5 # GBs
end

Or remove an existing one:
ruby
swap_file '/mnt/swap' do
action :remove
end

LWRP Attributes

<table>
<tr>
<th>Attribute</th>
<th>Description</th>
<th>Example</th>
<th>Default</th>
</tr>
<tr>
<td>path</td>
<td>The path to put the swap file on the system</td>
<td>/mnt/swap</td>
<td></td>
</tr>
<tr>
<td>size</td>
<td>The size (in GBs) for the swap file</td>
<td>2</td>
<td></td>
</tr>
</table>

Usage

If you're using berkshelf, add swap to your Berksfile:

cookbook 'swap'

Otherwise, install the cookbook from the community site:

knife cookbook site install swap

Have any other cookbooks depend on this cookbook by adding it to the metadata.rb:

depends 'swap'

Now you can use the LWRP in your cookbook!

Contributing

  1. Fork the project
  2. Create a feature branch corresponding to you change
  3. Commit and test thoroughly
  4. Create a Pull Request on github
    • ensure you add a detailed description of your changes

License and Authors

Copyright 2012, Seth Vargo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

No quality metric results found