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

shipper (1) Versions 0.1.2

Setup shipper to allow continuous deployments

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

Description

Installs and configures the latest version of (Shipper)[https://github.com/18f/shipper]. And provides a shipper_config LWRP.

Requirements

Platform

  • Debian, Ubuntu

Resource/Provider

This cookbook includes LWRPs for managing shipper config files.

shipper_config

Creates a Shipper configuration file at the path specified. And sets up a daemon with the configuration created

Actions

  • :create: create a Shipper configuration file and daemon.
  • :delete: delete an existing Shipper configuration file and daemon.

Attribute Parameters

  • project: name attribute. Name of the project being deployed.
  • repository: github repository for the project.
  • environment: the application environment. Default: production
  • app_path: path to the application.
  • app_user: user that owns the application path.
  • server_id: unique id of the server. Default: Hash of the server ip.
  • github_key: github API key to read and clone private repositories.
  • shared_files: a hash of shared files. It takes the form of { from: 'to' }.
  • before_symlink: array of commands to run before symlinking.
  • after_symlink: array of commands to run after symlinking.
  • shipper_path: path to the shipper install directory. Default: /etc/shipper

Example

# create a config
shipper_config "myproject" do
  repository "https://github.com/18f/shipper.git"
  environment "production"
  app_path deploy_to_dir
  app_user "user"
  github_key "foobar"
  shared_files {
    "config/database.yml" => "config/database.yml"
  }
  after_symlink [
    "touch tmp/restart.txt"
  ]
end

Usage

Simply include the recipe where you want Shipper installed.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

myusa Applicable Versions

Collaborator Number Metric
            

0.1.2 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.2 passed this metric

Foodcritic Metric
            

0.1.2 failed this metric

FC059: LWRP provider does not declare use_inline_resources: shipper/providers/config.rb:1
FC059: LWRP provider does not declare use_inline_resources: shipper/providers/install.rb:1
FC064: Ensure issues_url is set in metadata: shipper/metadata.rb:1
FC065: Ensure source_url is set in metadata: shipper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: shipper/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: shipper/metadata.rb:1
FC068: Ensure license is set in metadata: shipper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: shipper/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: shipper/resources/config.rb:1
FC074: LWRP should use DSL to define resource's default action: shipper/resources/install.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.2 failed this metric

shipper does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.2 passed this metric

Publish Metric
            

0.1.2 passed this metric

Supported Platforms Metric
            

0.1.2 failed this metric

shipper should declare what platform(s) it supports.

Testing File Metric
            

0.1.2 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.2 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