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

jekyll (1) Versions 0.1.0

Installs/Configures a Jekyll blog

Berkshelf/Librarian
Policyfile
Knife
cookbook 'jekyll', '~> 0.1.0'
cookbook 'jekyll', '~> 0.1.0', :supermarket
knife cookbook site install jekyll
knife cookbook site download jekyll
README
Dependencies
Quality

chef-cookbook_jekyll

Synopsis

This is a Chef cookbook for deploying your Jekyll blog. Although it's in an early stage it has a couple of features to keep things flexible.

  • Deployment via git
  • Software prerequisites can be defined with an attribute
  • Gem dependencies solved/installed via Bundler
  • Support for additional jekyll command-line options
  • Support for rbenv via Fletcher Nichol's rbenv cookbook
  • Creates an Apache2 vhost for your blog

I haven't had the chance yet to test the cookbook besides my Debian-based environment and my own Jekyll blog. Therefore, please use it with caution and contribute if there're things that need to be fixed!

Requirements

Miscellaneous

Chef dependencies

  • apache2
  • rbenv

Usage

Adding the cookbook

Download the cookbook via Opscode's API:

knife cookbook site install jekyll

Or add it to your Librarian-chef Cheffile:

cookbook 'jekyll',
  :git => 'https://github.com/fooforge/chef-cookbook_jekyll.git'

Configuration

The best way to configure the cookbook for your blog is to add a separate role for each Jekyll blog and to set needed attributes via default_attributes.

Here's an example:

name "jekyll_blog-fooforge.com"
description "Installs the Jekyll blog fooforge.com."
# List of recipes and roles to apply. Requires Chef 0.8, earlier versions use 'recipes()'.
run_list(
  'recipe[jekyll]'
)
# Attributes applied if the node doesn't have it set already.
default_attributes(
  'jekyll' => {
    'deploy_directory' => '/var/www/fooforge.com',
    'repository' => 'https://github.com/fooforge/fooforge.com.git',
    'user' => 'some_user',
    'group' => 'some_group',
    'domain_name' => 'fooforge.com',
    'packages' => ['curl', 'libcurl4-openssl-dev', 'python-pygments'],
    'options' => ['rdiscount', 'pygments'],
    'rbenv' => {
      'activated' => true,
      }
  }
)
# Attributes applied no matter what the node has set already.
#override_attributes(
#)

For a full list of attributes please consult ./attributes/default.rb.

Development

  • Source hosted at GitHub
  • Report issues/Questions/Feature requests on GitHub as well

Pull requests are very welcome! Make sure your patches are well tested.

License

Copyright (c) 2012 Mike Adolphs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependent cookbooks

apache2 >= 0.0.0
rbenv >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.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.1.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.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: jekyll/metadata.rb:1
FC065: Ensure source_url is set in metadata: jekyll/metadata.rb:1
FC066: Ensure chef_version is set in metadata: jekyll/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jekyll/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.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.1.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