Forge Home

mock

mock Puppet module

39,023 downloads

5,678 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.0 (latest)
  • 1.0.1
  • 1.0.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released Jul 26th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'treydock-mock', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add treydock-mock
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install treydock-mock --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: redhat, centos, rpm, mock

Documentation

treydock/mock — version 1.1.0 Jul 26th 2018

puppet-mock

Puppet Forge Build Status

Table of Contents

  1. Overview - What is the mock module?
  2. Usage - Configuration and customization options
  3. Development - Guide for contributing to the module
  4. Further Information

Overview

This module manages the basics to begin using mock to rebuild RPMs.

Usage

Class: mock

By default this class performs the following actions.

  • Includes the epel class
  • Creates the mock group
  • Installs the mock package

Define the class with default parameters.

class { 'mock': }

Add users to mock group

class { 'mock':
  group_members => ['user1', 'user2'],
}

Disable management of the mock group.

class { 'mock':
  manage_group  => false,
}

To remove the mock group and the mock package

class { 'mock':
  ensure  => 'absent',
}

Reference

http://treydock.github.io/puppet-mock/

Limitations

This module has been built on and tested against Puppet 4.7 and higher.

This module has been tested on:

  • CentOS 6/7

Development

Testing

Testing requires the following dependencies:

  • rake
  • bundler

Install gem dependencies

bundle install

Run unit tests

bundle exec rake test

If you have Vagrant >= 1.2.0 installed you can run acceptance tests

bundle exec rake beaker

Further Information