cookbook 'nginx_vhost', '~> 0.1.0'
nginx_vhost (1) Versions 0.1.0 Follow7
Installs/Configures nginx_vhost
cookbook 'nginx_vhost', '~> 0.1.0', :supermarket
knife supermarket install nginx_vhost
knife supermarket download nginx_vhost
Description
Renders and enables vhost files for nginx.
This was written because at the time there was no other simple way to render
out a vhost file for nginx that proxies to unicorn locally over a unix socket
data_bag.rb
Lets you configure multiple vhost files from data bags.
default.rb
Does nothing
Requirements
Suggests
nginx
Isn't required, but I'm not sure why else you would need nginx config files.
Tested on:
Ubuntu 10.04, 12.04
Centos 5.8, 6.3
Should work everywhere
Attributes
data_bag.rb
node.nginx.vhosts = []
node.nginx.vhost.data_bag_name = "nginx"
Usage
simple unicorn upstream
nginx_vhost "unicorn.example.com" do
sockets [ "unix:/path/to/unicorn.sock" ]
end
static ssl
nginx_vhost "ssl.example.com" do
port 443
ssl_key "/path/to/cert.key"
ssl_cert "/path/to/cert.pem"
upstream false
end
simple remote upstreams
nginx_vhost "example.com" do
servers [ "10.0.0.1:80", "10.0.0.2:80", "10.0.0.3:80" ]
end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.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.1.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.1.0 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: nginx_vhost/metadata.rb:9
FC064: Ensure issues_url is set in metadata: nginx_vhost/metadata.rb:1
FC065: Ensure source_url is set in metadata: nginx_vhost/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_vhost/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_vhost/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: nginx_vhost/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: nginx_vhost/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:39
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:48
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
0.1.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.1.0 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: nginx_vhost/metadata.rb:9
FC064: Ensure issues_url is set in metadata: nginx_vhost/metadata.rb:1
FC065: Ensure source_url is set in metadata: nginx_vhost/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_vhost/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_vhost/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: nginx_vhost/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: nginx_vhost/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:39
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:48
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: nginx_vhost/metadata.rb:1
FC065: Ensure source_url is set in metadata: nginx_vhost/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_vhost/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_vhost/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: nginx_vhost/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: nginx_vhost/resources/default.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:39
FC085: Resource using new_resource.updated_by_last_action to converge resource: nginx_vhost/providers/default.rb:48
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
0.1.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