cookbook 'rancher-ng', '= 0.1.10'
rancher-ng
(26) Versions
0.1.10
-
Follow0
Installs/Configures Rancher
cookbook 'rancher-ng', '= 0.1.10', :supermarket
knife supermarket install rancher-ng
knife supermarket download rancher-ng
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' # Container/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 true # 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
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- 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.10 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.10 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.10 failed this metric
FC021: Resource condition in provider may not behave as expected: rancher-ng/providers/agent.rb:40
FC066: Ensure chef_version is set in metadata: rancher-ng/metadata.rb:1
FC067: Ensure at least one platform supported 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.10 passed this metric
No Binaries Metric
0.1.10 passed this metric
Testing File Metric
0.1.10 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.10 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.10 failed this metric
0.1.10 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.10 failed this metric
FC021: Resource condition in provider may not behave as expected: rancher-ng/providers/agent.rb:40
FC066: Ensure chef_version is set in metadata: rancher-ng/metadata.rb:1
FC067: Ensure at least one platform supported 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.10 passed this metric
No Binaries Metric
0.1.10 passed this metric
Testing File Metric
0.1.10 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.10 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.10 failed this metric
FC066: Ensure chef_version is set in metadata: rancher-ng/metadata.rb:1
FC067: Ensure at least one platform supported 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
0.1.10 passed this metric
No Binaries Metric
0.1.10 passed this metric
Testing File Metric
0.1.10 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.10 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.10 passed this metric
0.1.10 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.10 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.10 failed this metric