cookbook 'nginx_fallback_to_apache', '~> 1.1.0', :supermarket
nginx_fallback_to_apache (2) Versions 1.1.0 Follow0
Create a default site in Nginx that matches unhandled hosts and proxy them to Apache
cookbook 'nginx_fallback_to_apache', '~> 1.1.0'
knife supermarket install nginx_fallback_to_apache
knife supermarket download nginx_fallback_to_apache
nginx_fallback_to_apache Cookbook
Create a default site in Nginx that matches unhandled hosts and proxy them to Apache
Attributes
nginx_fallback_to_apache::default
<table> <tr> <th>Attribute</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>node[:nginx_fallback_to_apache][:nginx_port]</tt></td> <td>The main port Nginx is listening</td> <td><tt>node[:nginx][:listen_ports].first</tt></td> </tr> <tr> <td><tt>node[:nginx_fallback_to_apache][:apache_port]</tt></td> <td>The main port Apache is listening</td> <td><tt>node[:apache][:listen_ports].first</tt></td> </tr> <tr> <td><tt>node[:nginx_fallback_to_apache][:ssl]</tt></td> <td>Wheter to listen to SSL</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>node[:nginx_fallback_to_apache][:server_config]</tt></td> <td>Additional server{} configuration in hash format</td> <td><tt>{}</tt></td> </tr> <tr> <td><tt>node[:nginx_fallback_to_apache][:location_config]</tt></td> <td>Additional location{} configuration in hash format</td> <td><tt>{}</tt></td> </tr> </table>
Usage
nginx_fallback_to_apache::default
Just include nginx\_fallback\_to\_apache
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[nginx_fallback_to_apache]"
]
}
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
After 3 consistent patches you become a commiter :)
Dependent cookbooks
apache2 >= 0.0.0 |
nginx >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.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
1.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
1.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC065: Ensure source_url is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nginx_fallback_to_apache/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_fallback_to_apache/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 failed this metric
nginx_fallback_to_apache should declare what platform(s) it supports.
Testing File Metric
1.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
1.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
1.1.0 failed this metric
1.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
1.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC065: Ensure source_url is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nginx_fallback_to_apache/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_fallback_to_apache/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 failed this metric
nginx_fallback_to_apache should declare what platform(s) it supports.
Testing File Metric
1.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
1.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
1.1.0 failed this metric
FC065: Ensure source_url is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nginx_fallback_to_apache/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: nginx_fallback_to_apache/metadata.rb:1
FC069: Ensure standardized license defined in metadata: nginx_fallback_to_apache/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 failed this metric
nginx_fallback_to_apache should declare what platform(s) it supports.
Testing File Metric
1.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
1.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
1.1.0 passed this metric
1.1.0 failed this metric
nginx_fallback_to_apache should declare what platform(s) it supports.
Testing File Metric
1.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
1.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
1.1.0 failed this metric
1.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