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

RSS

media (6) Versions 0.1.0

Installs/Configures media

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

Media Chef Cookbook

This cookbook will setup the media devices on a server which will ideally act
as a file/media server. Initially it will be used to mount external devices and
add then as NFS shares.

Requirements

This cookbook requires devices to be preformatted to a file system. It will not
format the devices. It will simply mount the specified devices for using as a
file/media server.

For cookbook dependencies/requirements see metadata.rb.

Usage

For setting up the media devices

Prepare the node['media']['devices'] node attribute and use the
media::default or media::mount_devices recipe. There is no need for
specifying the file system types. It is automatically detected and used for
mounting the devices.
```ruby

Prepare the media devices

node.set['media']['devices'] = {
'/dev/sdb1' => '/mnt/videos',
'/dev/sdc1' => '/mnt/movies'
}

Include the recipe

include_recipe "media::default"
```

For setting up the NFS shares

By default the mounted devices mount points are used for setting up the NFS
shares. It can be overridden by setting the node['media']['nfs']['shares']
node attribute. Then run the media::setup_nfs_shares recipe.

Attributes

  • node['media']['devices'] - The media devices to mount
  • node['media']['user'] - The user to be used for media mount points
  • node['media']['group'] - The group to be used for media mount points
  • node['media']['nfs']['shares'] - The NFS shares to setup
  • node['media']['nfs']['network'] - The NFS network address to share with
  • node['media']['nfs']['writable'] - The writeable property of NFS share
  • node['media']['nfs']['sync'] - The sync property of NFS share
  • node['media']['nfs']['options'] - The options to be used for the NFS share

Recipes

media::default

This is the default recipe. It just runs the media::mount_devices recipe.

media::mount_devices

This recipe mounts the specified media devices in the mount points given. See
Usage for more details.

media::setup_nfs_shares

This recipe installs the requied packages for NFS server and sets up the nfs
shares.

Author

Author:: Kannan Manickam (me@arangamani.net)

Dependent cookbooks

nfs >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found