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

rancher-ng (26) Versions 0.1.25

Installs/Configures Rancher

Policyfile
Berkshelf
Knife
cookbook 'rancher-ng', '= 0.1.25', :supermarket
cookbook 'rancher-ng', '= 0.1.25'
knife supermarket install rancher-ng
knife supermarket download rancher-ng
README
Dependencies
Quality 29%

rancher-ng cookbook

Cookbook for installing Rancher server & agent

Supported Platforms

It should work on most Linux distributions.

Tested on Ubuntu and CentOS 7.x.

Usage

Attributes

See the attributes/default.rb file for default values.

Recipes

server

Setup default Rancher Server container, based on node['rancher_ng']['server'] attributes.

agent

Setup default Rancher Agent container, based on node['rancher_ng']['agent'] attributes.

Providers

To use the providers, append the following to your metadata.rb

depends 'rancher-ng'

rancher_ng_server

Deploys server container. With this you can skip keys in server provider.

rancher_ng_server 'name' do
  name 'mycontainer' # Container/Job name

  image 'rancher/server' # Server image
  version 'v1.6.0' # Server image version

  db_dir '/var/opt/rancher_db' # Rancher's db directory
  port '8080' # Rancher's server port

  detach true # Docker's `detach` mode
  restart_policy 'unless-stopped' # Docker's `restart` mode

  external_db false # Use external MySQL DB?

  db_host 'localhost' # Database host
  db_port '3306' # Database port
  db_user 'cattle' # Database user
  db_pass 'password' # Database password
  db_name 'cattle' # Database name

  cookbook  'rancher-ng' # Cookbook to take erb template from

  action :create # :create, :delete
end

rancher_ng_agent

Deploys agent container. With this you can skip keys in agent provider.

rancher_ng_agent 'name' do
  name 'mycontainer' # Job name

  image 'rancher/agent' # Agent image
  version 'v1.2.2' # Agent image version

  auth_url 'http://yourserver:8080/SOMETOKEN' # Agent's server authentication url
  mount_point '/var/lib/rancher:/var/lib/rancher' # Rancher's volume
  autoremove false # Docker's `autoremove` mode
  privileged true # Docker's `privileged` mode

  cookbook  'rancher-ng' # Cookbook to take erb template from

  action :create # :create, :delete
end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author: Alexander Merkulov sasha@merqlove.ru

Contributors: write me, to be here

Dependent cookbooks

docker ~> 2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.25 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.25 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.1.25 failed this metric

FC066: Ensure chef_version is set in metadata: rancher-ng/metadata.rb:1
FC069: Ensure standardized license defined in metadata: rancher-ng/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.25 passed this metric

No Binaries Metric
            

0.1.25 passed this metric

Testing File Metric
            

0.1.25 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.25 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