Cookbook to create and mount swap files on hosts.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
spec
.foodcritic-rules
.gitignore
.gitreview
.travis.yml
Berksfile
Berksfile.lock
Gemfile
Gemfile.lock
README.md
metadata.rb

README.md

Build Status

Description

Cookbook to create and mount swap files on hosts.

This cookbook will create a file based swap file and set it up in the fstab to persist on reboots.

Requirements

Chef 0.8+

Attributes

  • default['create-swap']['swap-location'] - Where should we create the swapfile on disk?
  • default['create-swap']['swap-size'] - How big should we make the swap file (in gigabytes)

Usage

"run_list": [
    "recipe[swap]"
]

default

Installs/Configures swap

Testing

$ bundle install
$ bundle exec berks install
$ bundle exec strainer test

License and Author

Author:: Kevin Bringard (kbringard@att.com)

Copyright 2013, AT&T Services, Inc.

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.