Version information
This version is compatible with:
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'treydock-gpg_key', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-gpg_key
The gpg_key module lets you manage GPG keys with Puppet.
Currently the only provider is to import RPM GPG keys.
Compatibility
Puppet Versions | < 2.6 | 2.6 | 2.7 | 3.x | 4.x |
---|---|---|---|---|---|
gpg_key 0.0.x | no | no | yes | yes | yes |
Support
Tested using
- CentOS 5.9
- CentOS 6.4
- Fedora 18
Usage
gpg_key
Installs a GPG key at the given path. This type autorequires the file resource in path
file { 'RPM-GPG-KEY-foo':
ensure => present,
path => '/etc/pki/rpm-gpg/RPM-GPG-KEY-foo',
source => 'file:///modules/foo/RPM-GPG-KEY-foo',
}
gpg_key { 'foo':
path => '/etc/pki/rpm-gpg/RPM-GPG-KEY-foo',
}
Reference
Types:
Type: gpg_key
This type provides the capability to manage GPG keys within Puppet.
####ensure
Indicates if the GPG key should be imported or removed.
Can either be present
or absent
. Defaults to present
.
####path
The path of the GPG key to import.
This value must be an absolute filesystem path.
Development
Testing
Make sure you have:
- rake
- bundler
Install the necessary gems:
bundle install
Run the tests from root of the source code:
bundle exec rake test
If you have Vagrant you can also run system tests:
bundle exec rake beaker
BEAKER_set=centos-59-x64 bundle exec rake beaker
BEAKER_set=fedora-18-x64 bundle exec rake beaker
Types in this module release
treydock-gpg_key changelog
Release notes for the treydock-gpg_key module.
2018-08-23 Release 0.1.0
- Support osfamily=suse
2016-11-10 Release 0.0.4
This is a bugfix release to fix support for Facter 2.0 and switch module to using metadata.json
This release also contains updated development Gem dependencies.
Detailed Changes:
- Fix support for Facter 2 and above
- Switch module from Modulefile to metadata.json
- Update development Gem dependencies
- Move beaker and acceptance test gem dependencies into system_tests group
- Update Travis-CI configuration
2014-05-31 Release 0.0.3
This is a bugfix release to fix running Puppet with --noop when the GPG key file specified using 'path' does not exist.
This release also contains updated development Gem dependencies.
Detailed Changes:
- Only check file's GPG key if file exists
- Minor update to README for clarity - fixes issue #4
- Replace rspec-system tests with beaker-rspec
- Update development Gem dependencies
- Refactor Rake tasks
2014-01-03 Release 0.0.2
This is a bugfix release to handle an issue when no gpg-pubkeys exist in RPM database.
Detailed Changes:
- Fix error when no gpg-pubkeys exist in RPM database
2013-07-18 Release 0.0.1
- Initial release