Forge Home

confinelibs

Confine Puppet providers based on libs (Gems)

8,578 downloads

8,578 latest version

4.1 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

  • 0.1.0 (latest)
released Jul 19th 2015

Start using this module

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

Add this module to your Puppetfile:

mod 'jhoblitt-confinelibs', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jhoblitt-confinelibs
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jhoblitt-confinelibs --version 0.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

Documentation

jhoblitt/confinelibs — version 0.1.0 Jul 19th 2015

Puppet confinelibs Module

Build Status

Table of Contents

  1. Overview
  2. Description
  3. Usage
  4. Limitations
  5. Versioning
  6. Support
  7. Contributing
  8. See Also

Overview

Confine Puppet providers based on libs (Gems)

Description

Create a Puppet::Confine instance that requires a list of libs (Gems). A separate Puppet::Util::Feature is created for each lib. This is similar to Puppet::Confine::Feature for lib dependencies except that a feature does not need to be manually declared.

Usage

Examples

Single lib

confine :libs => "simple-graphite"

Ruby 1.9+ JSON style

confine libs: "simple-graphite"

Multiple libs

confine :libs => ["openstack", "slackcat"]

Equivalent to:

confine :libs => "openstack"
confine :libs => "slackcat"

Equivalent to:

confine :libs => ["openstack"]
confine :libs => ["slackcat"]

Ruby 1.9+ JSON style

confine libs: ["openstack", "slackcat"]

Limitations

Tested Puppets

  • 3.7.5
  • 4.0.0

Versioning

This module is versioned according to the Semantic Versioning 2.0.0 specification.

Support

Please log tickets and issues at github

Contributing

  1. Fork it on github
  2. Make a local clone of your fork
  3. Create a topic branch. Eg, feature/mousetrap
  4. Make/commit changes
    • Commit messages should be in imperative tense
    • Check that linter warnings or errors are not introduced - bundle exec rake lint
    • Check that Rspec-puppet unit tests are not broken and coverage is added for new features - bundle exec rake spec
    • Documentation of API/features is updated as appropriate in the README
    • If present, beaker acceptance tests should be run and potentially updated - bundle exec rake beaker
  5. When the feature is complete, rebase / squash the branch history as necessary to remove "fix typo", "oops", "whitespace" and other trivial commits
  6. Push the topic branch to github
  7. Open a Pull Request (PR) from the topic branch onto parent repo's master branch

See Also