cookbook 'ssl_helper', '~> 0.0.1'
ssl_helper (1) Versions 0.0.1 Follow0
Installs ssl stuff
cookbook 'ssl_helper', '~> 0.0.1', :supermarket
knife supermarket install ssl_helper
knife supermarket download ssl_helper
ssl_helper Cookbook
This cookbook designed to work with certificates/keyfiles in encrypted data bags/
Requirements
No additional requirements
Attributes
- ssl_helper::default <table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>default[:ssl][:certificates][:data_bag] = "certificates"</tt></td> <td>String/td> <td>Choose which data bag to use</td> <td><tt>certificate</tt></td> </tr> </table>
Usage
- ssl_helper::default
`
This resource will install secret.pem with contents from encrypted data_bag : certificates/security.com
ssl_helper_ssl_pem "/etc/secret.pem" do
owner "root"
group "root"
mode 0400
cn "security.com"
end
This entry will install ca.crt with contents from encrypted data_bag : certificates/authority.com
ssl_helper_ssl_ca_certificate "/etc/ca.crt" do
owner "root"
group "root"
mode 0644
authority "authority.com"
end
This entry will install secret.crt with contents from encrypted data_bag : certificates/mycert.com to /etc/secret.crt.
Also it will install secret.com.key to /etc/secret.com.key with content from encrypted data_bag : certificates/mycert.com
ssl_helper_ssl_ca_certificate "/etc/secret.crt" do
owner "root"
group "root"
mode 0644
cn "mycert.com"
key "/etc/secret.com.key"
end
This entry will install security.crt with contents from encrypted data_bag : certificates/security.com to /etc/security.crt
ssl_helper_ssl_ca_certificate "/etc/security.crt" do
owner "root"
group "root"
mode 0644
cn "security.com"
end
`
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors:
sanicheev@tacitknowledge.com
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: ssl_helper/metadata.rb:1
FC065: Ensure source_url is set in metadata: ssl_helper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ssl_helper/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_ca_certificate.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:48
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_pem.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ssl_helper/recipes/default.rb
Testing File Metric
0.0.1 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.0.1 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.0.1 failed this metric
0.0.1 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.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: ssl_helper/metadata.rb:1
FC065: Ensure source_url is set in metadata: ssl_helper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ssl_helper/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_ca_certificate.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:48
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_pem.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ssl_helper/recipes/default.rb
Testing File Metric
0.0.1 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.0.1 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.0.1 failed this metric
FC065: Ensure source_url is set in metadata: ssl_helper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ssl_helper/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_ca_certificate.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_certificate.rb:48
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssl_helper/providers/ssl_pem.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ssl_helper/recipes/default.rb
Testing File Metric
0.0.1 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.0.1 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.0.1 failed this metric
0.0.1 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