cookbook 'caddy', '~> 0.5.0'
caddy (5) Versions 0.5.0 Follow4
Installs/Configures caddy
cookbook 'caddy', '~> 0.5.0', :supermarket
knife supermarket install caddy
knife supermarket download caddy
caddy Cookbook
This cookbook installs and runs caddy webserver https://caddyserver.com | https://github.com/mholt/caddy
Requirements
Operating Systems
- Ubuntu
- Debian
- CentOS
In various versions. See .kitchen.yml
for details.
cookbooks
ark
Attributes
caddy::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['caddy']['features']</tt></td>
<td>Array</td>
<td>features to download and install with caddy</td>
<td><tt>[]</tt></td>
</tr>
<tr>
<td><tt>['caddy']['email']</tt></td>
<td>String</td>
<td>email to use with registration in letsencryt</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['caddy']['hosts']</tt></td>
<td>Hash</td>
<td>Caddyfile in form of Hash</td>
<td><tt>{}</tt></td>
</tr>
</table>
Usage
caddy::default
Set eMail - ['caddy']['email']
Set your eMail to register with letsencryt for HTTPS Support
Write your Caddyfile - ['caddy']['hosts']
{ 'localhost:80' => { 'log' => 'localhost.log', 'proxy_header' => ['"Host {host}", "X-Real-IP {remote}"'], "rewrite": { "if": "{path} not_match ^/wp-admin", "to": "{path} {path}/ /index.php?_url={uri}" } }, 'localhost:8080' => { 'log' => 'localhost_alt.log' } }
(Optional} Add features
Add features to be downloaded, e.g.
ruby
['cors','git']
then include caddy
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[caddy]" ] }
Test
kitchen test
Contributing
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
1. Fork the repository on Github
2. Create a named feature branch (like add_component_x
)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github
License and Authors
Authors:
- Christian Fischer
- Gabriel Mazetto
Dependent cookbooks
ark >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
caddy CHANGELOG
This file is used to list changes made in each version of the caddy cookbook.
0.5.0 (DEV)
- Christian Fischer - Update Testsuite images and ports
- Gabriel Mazetto - Improve systemd compatibility
- Christian Fischer - Improve template generation
- Felix Simmendinger - Improve support for different OSes, add CentOS 6.7
- Felix Simmendinger - Add serverspec tests
- Felix Simmendinger - Make limit for open filehandles configurable using
node['caddy']['ulimit']
, defaults to4096
.
0.4.0
- Gabriel Mazetto - Improved documentation and CHANGELOG
- Gabriel Mazetto - Foodcritic on Travis CI
- Gabriel Mazetto - Added subdirective to the template (to enable rewrite rules on hosts)
- Gabriel Mazetto - Use Upstart for Ubuntu LTS (14.04)
- Gabriel Mazetto - Repeated elements can now be used (see proxy_header example)
- Gabriel Mazetto - Improved template code and Chefspec
0.3.0
- Christian Fischer - Improved cookbook metadata
- Christian Fischer - Fixes for sysV init system
0.2.0
- Christian Fischer - Caddyfile template generated based on cookbook attributes
- Christian Fischer - Init systems support (sysv systemd upstart)
0.1.0
- Christian Fischer - Initial release of caddy cookbook
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.5.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.5.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.5.0 failed this metric
FC066: Ensure chef_version is set in metadata: caddy/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: caddy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: caddy/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.5.0 passed this metric
Testing File Metric
0.5.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.5.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.5.0 failed this metric
0.5.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.5.0 failed this metric
FC066: Ensure chef_version is set in metadata: caddy/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: caddy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: caddy/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.5.0 passed this metric
Testing File Metric
0.5.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.5.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.5.0 failed this metric
FC067: Ensure at least one platform supported in metadata: caddy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: caddy/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.5.0 passed this metric
Testing File Metric
0.5.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.5.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.5.0 failed this metric
0.5.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