cookbook 'shipper', '~> 0.1.2', :supermarket
shipper (1) Versions 0.1.2 Follow0
Setup shipper to allow continuous deployments
cookbook 'shipper', '~> 0.1.2'
knife supermarket install shipper
knife supermarket download shipper
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
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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.1.2 failed this 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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.1.2 failed this metric
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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.1.2 passed this 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
0.1.2 failed this 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