cookbook 'poise-tls-remote-file', '~> 1.0.1'
poise-tls-remote-file (2) Versions 1.0.1 Follow0
A Chef cookbook cookbook to download files over HTTPS using TLS client certificate authentication.
cookbook 'poise-tls-remote-file', '~> 1.0.1', :supermarket
knife supermarket install poise-tls-remote-file
knife supermarket download poise-tls-remote-file
Poise-TLS-Remote-File Cookbook
A Chef cookbook to download files over HTTPS using TLS
client certificate authentication or with custom CA certificates.
Quick Start
To download a file using TLS client certificate authentication:
tls_remote_file '/path/to/file' do client_cert '/etc/ssl/client.crt' client_key '/etc/ssl/private/client.key' end
To specify a CA certificate for the download:
tls_remote_file '/path/to/file' do ca '/etc/ssl/mycompany.crt' end
Certificates and keys can also be specified in-line as strings or retrieved
from other APIs like Chef data bags:
tls_remote_file '/path/to/file' do client_cert data_bag_item('client_keys', node.chef_environment)['key'] ca <<-EOH -----BEGIN CERTIFICATE----- MIIFEjCCAvoCAQIwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQVUxEzARBgNV ... -----END CERTIFICATE----- EOH end
Attributes
-
node['poise-tls-remote-file']['client_cert']
– Default client_cert for alltls_remote_file
resources. -
node['poise-tls-remote-file']['client_key']
– Default client_key for alltls_remote_file
resources. -
node['poise-tls-remote-file']['ca']
– Default ca for alltls_remote_file
resources.
Resources
tls_remote_file
The tls_remote_file
resource downloads a file using TLS client certificate
authentication.
tls_remote_file '/path/to/file' do client_cert '/etc/ssl/client.crt' client_key '/etc/ssl/private/client.key' ca '/etc/ssl/ca.crt' end
Actions
All actions are the same as the core remote_file
resource.
Properties
-
client_cert
– Path or PEM encoded TLS certificate to use for the client. Can also be set to a combined certificate and key file. -
client_key
– Path or PEM encoded TLS key to use for the client. -
ca
– Path or PEM encoded TLS certificate to add to the standard Chef trusted CA certificates. Can be passed as an array to add multiple certificates.
All other properties are the same as the core remote_file
resource.
Sponsors
Development sponsored by SAP.
The Poise test server infrastructure is sponsored by Rackspace.
License
Copyright 2017, Noah Kantrowitz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Poise-TLS-Remote-File Changelog
v1.0.1
- Fix for using HTTP URLs with a
ca
property set.
v1.0.0
- Initial release!
Collaborator Number Metric
1.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
1.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
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.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
1.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
1.0.1 failed this metric
1.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
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.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
1.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
1.0.1 passed this metric
1.0.1 passed this metric
Testing File Metric
1.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
1.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
1.0.1 failed this metric
1.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