Forge Home

hiera_genders

Hiera backend using genders

10,253 downloads

9,773 latest version

3.8 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.2.0 (latest)
  • 0.1.1
  • 0.1.0
released Aug 21st 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'wcooley-hiera_genders', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add wcooley-hiera_genders
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install wcooley-hiera_genders --version 0.2.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: hiera, genders, cmdb

Documentation

wcooley/hiera_genders — version 0.2.0 Aug 21st 2014

hiera-genders

Build
Status

Provides a genders backend for Hiera.

Author

  • Wil Cooley wcooley(at)nakedape.cc

Example

To try it out with the hiera command outside of Puppet:

$ RUBYLIB=`pwd`/lib hiera -c spec/fixtures/hiera/good/hiera.yaml foo hostname=host1
bar
$ RUBYLIB=`pwd`/lib hiera -c spec/fixtures/hiera/good/hiera.yaml oof hostname=host1
true

License

Author:: Wil Cooley (wcooley(at)nakedape.cc)
Copyright:: Copyright (c) 2013 Wil Cooley
License:: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Testing

Due to what appears to be a bug in the new hiera support in rspec-puppet, it is not possible to change the hiera_config so running just rake spec or rspec at the top of the tree fails. Instead, run the tests separately:

$ rspec spec/functions/hiera_genders_broken_spec.rb
$ rspec spec/functions/hiera_genders_good_spec.rb

Or using a non-standard Rake task:

$ rake specs

Support

Please log tickets and issues at our Github project.