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

smartos (1) Versions 0.0.1

Installs/Configures smartos

Berkshelf/Librarian
Policyfile
Knife
cookbook 'smartos', '~> 0.0.1'
cookbook 'smartos', '~> 0.0.1', :supermarket
knife cookbook site install smartos
knife cookbook site download smartos
README
Dependencies
Quality 33%

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
FC017: LWRP does not notify when updated: smartos/providers/repos.rb:1
FC017: LWRP does not notify when updated: smartos/providers/repos.rb:10
FC059: LWRP provider does not declare use_inline_resources: smartos/providers/repos.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 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.0.1 passed this metric

No Binaries Metric
            

0.0.1 passed this metric

Publish Metric
            

0.0.1 passed this metric

Supported Platforms Metric
            

0.0.1 failed this metric

smartos should declare what platform(s) it supports.

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