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

smartos (1) Versions 0.0.1

Installs/Configures smartos

Policyfile
Berkshelf
Knife
cookbook 'smartos', '~> 0.0.1', :supermarket
cookbook 'smartos', '~> 0.0.1'
knife supermarket install smartos
knife supermarket download smartos
README
Dependencies
Quality 17%

Description

This cookbook include resources to managing Joyent smartos.

Requirements

Platforms

Joyent SmartOS

Providers

Tested on:

  • SmartOS 1.4.7

Recipes

default

Includes resource pkgin update.

Resources/Providers

pkgin repository

new_resource: smartos_pkgin

Usage

include_recipe "smartos"

This cookbook add resource smartos_pkgin for managiment SmartOS Packages.

example install and manage service nginx.

To install or remove, must set full package name.

example for nginx cookbook.

include_recipe "smartos"

smartos_pkgin "nginx-1.0.4" do
  action :install
  provider "smartos_repos"
end

service "nginx" do
  action [ :enable, :start ]
  provider Chef::Provider::Service::Solaris
end

This will install nginx and start under smf.

Setup Chef on SmartOS

require packages

[ruby19, autoconf, gmake, gcc ]

commands

# gem install bundler
# mkdir /opt/chef && cd /opt/chef
# bundle init
# echo 'gem "chef"'>> Gemfile
# bundle install --path vendor/bundle

If you want to use Rake task to exec chef-client/solo.

Add 1st line below, and write tasks.

require 'bundler/setup'

Changes

v0.0.1:

Implement pkgin managing. install, remove and update.

Licence/Author

Licence:: Apache 2.0

Author:: Y.Sawanobori sawanoboriyu@higanworks.com

Copyright 2012, HiganWorks LLC.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

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

FC016: LWRP does not declare a default action: smartos/resources/pkgin.rb:1
FC064: Ensure issues_url is set in metadata: smartos/metadata.rb:1
FC065: Ensure source_url is set in metadata: smartos/metadata.rb:1
FC066: Ensure chef_version is set in metadata: smartos/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: smartos/metadata.rb:1
FC069: Ensure standardized license defined in metadata: smartos/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.1 passed this metric

Testing File Metric
            

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