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

package-driver (2) Versions 0.1.0

package-driver: data-bag driven package installs.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'package-driver', '= 0.1.0'
cookbook 'package-driver', '= 0.1.0', :supermarket
knife cookbook site install package-driver
knife cookbook site download package-driver
README
Dependencies
Quality

Description

Installs packages via attributes or data bag metadata.

Requirements

Chef

No specific version requirements. Tested on 11.4.0.

Platform

The following platforms have been tested with this cookbook, meaning that the recipes run on these platforms without error:

  • arch
  • ubuntu

Installation

With librarian-chef, add: cookbook 'package-driver', :github => 'markhibberd/package-driver'

Usage

Include recipe[package-driver] in your run_list and populate the node['packages'] attribute.

Recipes

default

Install a list of packages, specified by node['packages'].

To use this simply create an item in the packages data bag. For example, data_bags/packages/all.json:

{
  "id": "all",
   packages: [
       "nodejs",
       "ghc"
   ]
}

Then specify the item name.

node['packages'] = [ 'all' ]

Attributes

data_bag

Specify the data bag to pull package information from.

items

Specify the name of the attribute to use to populate the package lists.

For example if you wanted to define you packages with 'install-me' you would:

node['package-driver']['items'] = 'install-me' node['install-me'] = [ 'postgresql', 'ghc' ]

Resources and Providers

None yet.

Development And Issues

The implementation is currently pretty sparse. Plan to add more in the near future. Any suggestions, issues or patches are very welcome.

License and Author

Author:: Mark Hibberd mark@hibberd.id.au

Copyright:: 2013, Mark Hibberd

All code is copyright 2013 Mark Hibberd mark@hibberd.id.au

All code is licensed under a 3-point BSD style license.

See LICENSE or https://github.com/markhibberd/package-driver/blob/master/LICENSE.

  • user - Creates users from data bags using a similar process.
  • dpkg_packages - Installs debian packages using, among other things, data bags for specifying details.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found