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

shipper (1) Versions 0.1.2

Setup shipper to allow continuous deployments

Policyfile
Berkshelf
Knife
cookbook 'shipper', '~> 0.1.2', :supermarket
cookbook 'shipper', '~> 0.1.2'
knife supermarket install shipper
knife supermarket download shipper
README
Dependencies
Quality 50%

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

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
FC085: Resource using new_resource.updated_by_last_action to converge resource: shipper/providers/config.rb:43
FC085: Resource using new_resource.updated_by_last_action to converge resource: shipper/providers/config.rb:60
FC085: Resource using new_resource.updated_by_last_action to converge resource: shipper/providers/install.rb:9
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.2 passed this metric

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 passed this metric