- Overview
- Installation
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- License
Install GnuPG on Ubuntu/Debian/RedHat/CentOS/Amazon AMI and manage users public keys.
Tested with Tavis CI
NOTE: For puppet 2.7.x supported module please use version 0.X.X
$ puppet module install golja/gnupg
include '::gnupg'
gnupg_key { 'hkp_server_20BC0A86':
ensure => present,
key_id => '20BC0A86',
user => 'root',
key_server => 'hkp://pgp.mit.edu/',
key_type => public,
}
gnupg_key { 'jenkins_foo_key':
ensure => present,
key_id => 'D50582E6',
user => 'foo',
key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key',
key_type => public,
}
gnupg_key { 'jenkins_foo_key':
ensure => present,
key_id => 'D50582E6',
user => 'foo',
key_source => 'puppet:///modules/gnupg/D50582E6.key',
key_type => public,
}
gnupg_key { 'jenkins_foo_key':
ensure => present,
key_id => 'D50582E6',
user => 'bar',
key_content => '-----BEGIN BROKEN PUBLIC KEY BLOCK-----...',
key_type => public,
}
Note: You should use hiera lookup to get the key content
gnupg_key {'root_remove':
ensure => absent,
key_id => '20BC0A86',
user => 'root',
key_type => public,
}
gnupg_key {'root_remove':
ensure => absent,
key_id => '20BC0A66',
user => 'root',
key_type => both,
}
See the REFERENCE
There are two types of tests distributed with the module. Unit tests with rspec-puppet and acceptance tests using puppet_litmus.
For unit testing, make sure you have:
- rake
- bundler
Install the necessary gems:
bundle config set --local path 'vendor'
bundle install
And then run the unit tests:
bundle exec rake spec
If you want to run the system tests, make sure you also have:
- docker (default set)
- vagrant
Then run the tests using the default nodeset and puppet7:
bundle exec rake 'litmus:provision_list[default]'
bundle exec rake 'litmus:install_agent[puppet7]'
bundle exec rake litmus:install_module
bundle exec rake litmus:acceptance:parallel
Check the provision.yaml
file for other sets you can use.
Note: Tests will start to fail after 2023-03-30 (jenkins key expires). If this happens, please update the key used in the acceptance tests
This module has been tested on:
- Debian 8/9/10
- Ubuntu 14+
- RedHat 6/7/8
- CentOS 6/7/8
Note: For an up-to-date list, please check the acceptance tests.
Please see CONTRIBUTING.md
See LICENSE file