puppet-repoforge
Table of Contents
- Description
- Setup - The basics of getting started with repoforge
- 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
Description
This module configure repoforge's RPM repository and import RPM-GPG-KEY-rpmforge-dag and RPM-GPG-KEY-rpmforge-fabian.
Setup
Beginning with repoforge
To configure the repoforge with default parameters, declare the repoforge
class.
include repoforge
Usage
Configuring repoforge
class { 'repoforge':
rpmforge_enabled => 1,
rpmforge_extras_enabled => 1,
}
Configuring modules from Hiera
---
repoforge::rpmforge_enabled: 1
repoforge::rpmforge_extras_enabled: 1
Reference
Classes
Public Classes
repoforge
: Configure the repoforge repository and import the GPG keys.
Defined Types
repoforge::rpm_gpg_key
: Import the RPM GPG key.
Limitations
This module has been tested on:
- RedHat Enterprise Linux 5, 6, 7
- CentOS 5, 6, 7
- Scientific Linux 5, 6, 7
Development
Running tests
The STNS puppet module contains tests for both rspec-puppet (unit tests) and beaker-rspec (acceptance tests) to verify functionality. For detailed information on using these tools, please see their respective documentation.
Testing quickstart
- Unit tests:
$ bundle install
$ bundle exec rake lint
$ bundle exec rake validate
$ bundle exec rake spec
- Acceptance tests:
# Set your DOCKER_HOST variable
$ eval "$(docker-machine env default)"
# Run beaker acceptance tests
$ BEAKER_set=centos7 bundle exec rake beaker