bi_coreutils

Puppet module to manage coreutils

Bounded Infinity

bi

9,082 downloads

7,893 latest version

2.8 quality score

Version information

  • 0.0.15 (latest)
  • 0.0.14
  • 0.0.13
  • 0.0.12
  • 0.0.11
  • 0.0.10
  • 0.0.9
  • 0.0.8
  • 0.0.7
released Jun 8th 2015
This version is compatible with:
  • Debian
    ,
    RedHat

Start using this module

Documentation

bi/bi_coreutils — version 0.0.15 Jun 8th 2015

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with coreutils
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This modules has to main purposes:

  • Manage the static data associated with the coreutils package
  • Provide a wrapper around binaries in the coretutils package that are useful inside Puppet configuration

Module Description

The static data associated with the binaries contained in the coretuils package are stored in a puppet module data Hiera store. This allows higer level Hiera lookups to override binary paths, configuration files, etc...

Setup

puppet module install bi-bi_coreutils -i /path/to/moudles

Usage

Consistent static data

To use the statc data (for instance in another class or define):


define my_define() {
    require bi_coreutils::install::touch
    require bi_coreutils::install::test
    
    ...
    exec {"$bi_coreutils::install::touch::exe_path /some/file":
        ...
        unless => "! $bi_coreutils::install::test::exe_path -d /some/file",
    }
}

This allows an end user a consistent location to obtain the binary paths of executables that will be updated via the module data for each platform (or overridden for custom binaries).

Executable wrappers

The binary wrapper for useful programs contained in coreutils for example:


define my_define() {
    bi_coreutils::chmod { '/some/directory':
         mode => '755',
         recursive => true,
    }
}

Reference

For more information see the projects wiki.

Limitations

Development

For more information see the projects wiki.