cookbook 'npm_registry', '~> 0.2.0'
The npm_registry cookbook has been deprecated
Author provided reason for deprecation:
The npm_registry cookbook has been deprecated and is no longer being maintained by its authors. Use of the npm_registry cookbook is no longer recommended.
You may find that the npm_lazy cookbook is a suitable alternative.
npm_registry (3) Versions 0.2.0 Follow1
Installs and configures an NPM registry
cookbook 'npm_registry', '~> 0.2.0', :supermarket
knife supermarket install npm_registry
knife supermarket download npm_registry
chef-npm-registry
The npm_registry cookbook installs and configures an NPM package registry using the official NPM project layout. Includes support for replicating the official isaacs NPM registry (continuously or scheduled).
If you are installing this locally (such as with Vagrant), it is recommended you set the following attributes:
node['couch_db']['httpd']['bind_address'] = '0.0.0.0'
node['couch_db']['httpd']['secure_rewrites'] = false
This cookbook also makes use of the couch_db attributes:
node['couch_db']['config']['couchdb']['httpsd']
node['couch_db']['config']['httpd']['port']
node['couch_db']['config']['couchdb']['database_dir']
Requirements
Platform
- Ubuntu
Tested on:
- Ubuntu 12.04
- Ubuntu 12.10
Cookbooks
Requires Opscode's git and couchdb cookbooks and Marius Ducea's nodejs cookbook. Opscode's cron cookbook is only required if using scheduled replication. See Attributes and Usage for more information.
Attributes
See the attributes/defaults.rb for default values.
-
node['npm_registry']['git']['url']
- The URL to NPM's registry repository. Attribute is provided in case the repository is ever moved. -
node['npm_registry']['git']['reference']
- The branch or tag name to checkout from the Git repository. -
node['npm_registry']['isaacs']['registry']['url']
- The URL to the official NPM registry (used for replication). -
node['npm_registry']['replication']['flavor']
- Allowed values:none
,scheduled
orcontinuous
-
node['npm_registry']['replication']['scheduled']['minute']
- The scheduled minute value. -
node['npm_registry']['replication']['scheduled']['hour']
- The scheduled hour value. -
node['npm_registry']['replication']['scheduled']['weekday']
- The scheduled weekday value. -
node['npm_registry']['replication']['scheduled']['day']
- The scheduled day value. -
node['npm_registry']['replication']['scheduled']['month']
- The scheduled month value.
Usage
To install and configure the default NPM package registry, use:
{ "run_list": ["recipe[npm_registry]"] }
For scheduled replication, use:
{ "run_list": ["recipe[cron]", "recipe[npm_registry]"] }
Testing
This cookbook includes support for running tests via FoodCritic, ChefSpec, Kitchen and Minitest.
-
Install Vagrant, Gem, Cookbook and Vagrant plugin dependencies:
vagrant plugin install vagrant-berkshelf bundle install berks install
-
Run Vagrant instance with default attributes:
vagrant up
-
Run FoodCritic, ChefSpec, Kitchen and Minitest:
strainer test
Dependent cookbooks
git >= 0.0.0 |
couchdb >= 0.0.0 |
nodejs >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 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.2.0 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: npm_registry/metadata.rb:33
FC056: Ensure maintainer_email is set in metadata: npm_registry/metadata.rb:1
FC064: Ensure issues_url is set in metadata: npm_registry/metadata.rb:1
FC065: Ensure source_url is set in metadata: npm_registry/metadata.rb:1
FC066: Ensure chef_version is set in metadata: npm_registry/metadata.rb:1
FC069: Ensure standardized license defined in metadata: npm_registry/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
0.2.0 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.2.0 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: npm_registry/metadata.rb:33
FC056: Ensure maintainer_email is set in metadata: npm_registry/metadata.rb:1
FC064: Ensure issues_url is set in metadata: npm_registry/metadata.rb:1
FC065: Ensure source_url is set in metadata: npm_registry/metadata.rb:1
FC066: Ensure chef_version is set in metadata: npm_registry/metadata.rb:1
FC069: Ensure standardized license defined in metadata: npm_registry/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
FC056: Ensure maintainer_email is set in metadata: npm_registry/metadata.rb:1
FC064: Ensure issues_url is set in metadata: npm_registry/metadata.rb:1
FC065: Ensure source_url is set in metadata: npm_registry/metadata.rb:1
FC066: Ensure chef_version is set in metadata: npm_registry/metadata.rb:1
FC069: Ensure standardized license defined in metadata: npm_registry/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.0 passed this metric
Testing File Metric
0.2.0 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.2.0 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.2.0 failed this metric
0.2.0 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