cookbook 'htpasswd', '= 0.2.4', :supermarket
htpasswd (9) Versions 0.2.4 Follow18
Provider for htpasswd
cookbook 'htpasswd', '= 0.2.4'
knife supermarket install htpasswd
knife supermarket download htpasswd
htpasswd
Description
Manage an htpasswd file. If htpasswd exe isn't found, we install a python implementation.
Requirements
Work on linux with python for build-in implementation
Resource/Provider
This cookbook includes LWRPs for managing: * htpasswd
htpasswd
Actions
- :add: Add a login in a htpasswd file. modify it if there is already one and create file if not found (default)
- :overwrite: Overwrite an htpasswd file (delete file and add user).
Attribute Parameters
- package_name: file attribute. path of the htpaswwd to manage
- user: user to create
- password: password for the user
Example
# add user "foo" with password "bar" to "/etc/nginx/htpassword" with the default md5 type.
htpasswd "/etc/nginx/htpassword" do
user "foo"
password "bar"
end
# add user "foo" with password "bar" using sha1 as the type.
htpasswd "/etc/nginx/htpassword" do
user "foo"
password "bar"
type "sha1"
end
Collaborator Number Metric
0.2.4 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.4 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.2.4 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: htpasswd/metadata.rb:8
FC064: Ensure issues_url is set in metadata: htpasswd/metadata.rb:1
FC065: Ensure source_url is set in metadata: htpasswd/metadata.rb:1
FC066: Ensure chef_version is set in metadata: htpasswd/metadata.rb:1
FC069: Ensure standardized license defined in metadata: htpasswd/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.2.4 passed this metric
No Binaries Metric
0.2.4 passed this metric
Publish Metric
0.2.4 passed this metric
Supported Platforms Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 passed this metric
0.2.4 failed this metric
0.2.4 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.2.4 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: htpasswd/metadata.rb:8
FC064: Ensure issues_url is set in metadata: htpasswd/metadata.rb:1
FC065: Ensure source_url is set in metadata: htpasswd/metadata.rb:1
FC066: Ensure chef_version is set in metadata: htpasswd/metadata.rb:1
FC069: Ensure standardized license defined in metadata: htpasswd/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.2.4 passed this metric
No Binaries Metric
0.2.4 passed this metric
Publish Metric
0.2.4 passed this metric
Supported Platforms Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 passed this metric
0.2.4 failed this metric
FC064: Ensure issues_url is set in metadata: htpasswd/metadata.rb:1
FC065: Ensure source_url is set in metadata: htpasswd/metadata.rb:1
FC066: Ensure chef_version is set in metadata: htpasswd/metadata.rb:1
FC069: Ensure standardized license defined in metadata: htpasswd/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.4 passed this metric
No Binaries Metric
0.2.4 passed this metric
Publish Metric
0.2.4 passed this metric
Supported Platforms Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 passed this metric
0.2.4 passed this metric
0.2.4 passed this metric
Supported Platforms Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 passed this metric
0.2.4 passed this metric
0.2.4 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.2.4 passed this metric
0.2.4 passed this metric