cookbook 'chef-metadata', '~> 0.1.4'
chef-metadata (4) Versions 0.1.4 Follow0
Installs/Configures chef-metadata service for client download link creation
cookbook 'chef-metadata', '~> 0.1.4', :supermarket
knife supermarket install chef-metadata
knife supermarket download chef-metadata
chef-metadata
Server side metadata module to determine client downloads based on URL targeting.
Requirements
Platform:
- Linux
Usage
Add the default recipe to the runlist of your artifact server from where you want to distribute your chef clients
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['chef-metadata']['version']</tt></td>
<td>String</td>
<td>Package version</td>
<td><tt>0.3.0</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['install_dir']</tt></td>
<td>String</td>
<td>Installation path</td>
<td><tt>/opt/chef-metadata</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['url']</tt></td>
<td>String</td>
<td>Download URL</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['md5']</tt></td>
<td>String</td>
<td>Download md5</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['sha']</tt></td>
<td>String</td>
<td>Download sha</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['config']['listen']</tt></td>
<td>String</td>
<td>IP to listen on</td>
<td><tt>127.0.0.1</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['config']['port']</tt></td>
<td>String</td>
<td>Port to listen on</td>
<td><tt>8090</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['config']['path']</tt></td>
<td>String</td>
<td>Path to the chef client sources</td>
<td><tt>/path/to/your/sources</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['config']['url']</tt></td>
<td>String</td>
<td>URL where to download the chef clients</td>
<td><tt>http://your.server.com/artifacts/chef</tt></td>
</tr>
<tr>
<td><tt>['chef-metadata']['params']</tt></td>
<td>Array</td>
<td>Program parameters</td>
<td><tt>computed</tt></td>
</tr>
</table>
Recipes
chef-metadata::default
Installs the chef-metadata service and configuration
Versioning
This cookbook uses Semantic Versioning 2.0.0
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make functional cookbook changes,
MINOR version when you add functionality in a backwards-compatible manner,
PATCH version when you make backwards-compatible bug fixes.
Testing
The cookbook provides the following Rake tasks for testing:
rake foodcritic # Lint Chef cookbooks
rake integration # Alias for kitchen:all
rake kitchen:all # Run all test instances
rake kitchen:default-centos-64 # Run default-centos-64 test instance
rake kitchen:default-ubuntu-1204 # Run default-ubuntu-1204 test instance
rake rubocop # Run RuboCop style and lint checks
rake spec # Run ChefSpec examples
rake test # Run all tests
License and Author
Author: Sander Botman (sander.botman@gmail.com)
Copyright (c) 2014, Sander Botman All Rights Reserved.
Contributing
We welcome contributed improvements and bug fixes via the usual workflow:
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
chef-metadata CHANGELOG
0.1.0
- Sander Botman - Initial release of chef-metadata cookbook
0.1.1
- Sander Botman - Minor bugfixes
Collaborator Number Metric
0.1.4 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.4 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.4 failed this metric
FC064: Ensure issues_url is set in metadata: chef-metadata/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-metadata/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-metadata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-metadata/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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.4 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.4 failed this metric
0.1.4 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.4 failed this metric
FC064: Ensure issues_url is set in metadata: chef-metadata/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-metadata/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-metadata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-metadata/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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.4 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.4 failed this metric
FC065: Ensure source_url is set in metadata: chef-metadata/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-metadata/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-metadata/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.4 passed this metric
Testing File Metric
0.1.4 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.4 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.4 failed this metric
0.1.4 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