Version information
released Jul 18th 2013
Start using this module
Add this module to your Puppetfile:
mod 'treydock-gpg_key', '0.0.1'
Learn more about managing modules with a PuppetfileDocumentation
treydock/gpg_key — version 0.0.1 Jul 18th 2013
gpg_key
The gpg_key module lets you manage GPG keys with Puppet.
Currently the only provider is to import RPM GPG keys.
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 { '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6':
ensure => present,
source => 'file:///modules/epel/RPM-GPG-KEY-EPEL-6',
}
gpg_key { 'epel':
path => '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6',
}
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 ci
If you have Vagrant >= 1.1.0 you can also run system tests:
bundle exec rake spec:system
RSPEC_SET=centos-59-x64 bundle exec rake spec:system
RSPEC_SET=fedora-18-x64 bundle exec rake spec:system