cookbook 'gnugpg', '~> 0.1.1'
gnugpg (2) Versions 0.1.1 Follow0
Installs/Configures gnugpg
cookbook 'gnugpg', '~> 0.1.1', :supermarket
knife supermarket install gnugpg
knife supermarket download gnugpg
gnugpg Cookbook
Cookbook to deploy gnugpg - a complete and free implementation of the OpenPGP standard.
Requirements
Windows Server
There are two things to override among gnugpg
attributes
node['gnugpg']['keys']['file']
- this defaults to c:\tmp
directory
node['gnugpg']['temp']['directory']
- this is an array of GPG keys that you want to install
There is a need to create a wrapper recipe to copy your GPG keys into the target host. The gnugpg
cookbook expects the key or keys to be inside node['gnugpg']['temp']['directory']
directory.
This cookbook needs to be included after the wrapper has been called.
Chef
- Chef 12.7+
Platform
- CentOS, Red Hat - (to support on next version)
- Amazon Linux, Amazon - (to support on next version)
- Windows Server
Tested on:
- Windows Server 2012 Standard R2
Usage
Use the following code snippets.
Examples (Windows)
gnugpg_override.rb
---------------------
override['gnugpg']['keys']['file'] = ['gpg-secret-key.asc']
override['gnugpg']['temp']['directory'] = 'c:\\temp'
gnugpg_wrapper_recipe.rb
---------------------
node['gnugpg']['keys']['file'].each do |key|
template "#{node['gnugpg']['temp']['directory']}\\#{key}" do
source "gpg/#{key}.erb"
end
end
include_recipe 'gnugpg::default'
Authors
Author:: Rodel M. Talampas
Dependent cookbooks
ohai >= 4.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
0.1.1 failed this metric
Contributing File Metric
0.1.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
0.1.1 failed this metric
Foodcritic Metric
0.1.1 passed this metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
0.1.1 passed this metric
Testing File Metric
0.1.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
0.1.1 failed this metric
Version Tag Metric
0.1.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.1.1 failed this metric