cookbook 'smartos', '~> 0.0.1'
smartos (1) Versions 0.0.1 Follow3
Installs/Configures smartos
cookbook 'smartos', '~> 0.0.1', :supermarket
knife supermarket install smartos
knife supermarket download smartos
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
0.0.1 failed this 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
0.0.1 failed this metric
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
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
0.0.1 failed this 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