Giter Site home page Giter Site logo

puppet-module-slapd's Introduction

credativ slapd puppet module

Requirements

This module template requires the params_lookup function as found in the example42 puppi module (github.com/credativ/puppet-example42lib)

Usage

This module template uses parameterized classes. However, to make it work well with ENCs and to support hiera as an external data store, it uses a special function to define defaults for each parameter. That way, there are several ways to feed parameters into classes created with this module.

Top-Level variables / Hiera

In this case the argument name in the class needs to be prefixed with the module name. For example, if a module has a parameter use_xy it can be pre-declared like this:

$modulename_use_xy = $value

The same naming scheme works if parameters are defined in hiera.

Just be aware of global parameters: Modules may declare a parameter as global. In this case it is not prefixed with the module name. That usually makes sense for variables which are shared between various different modules.

Parameters

Obviously passing the plain parameters as argument to the class definition works too:

class { 'modulename':
    use_xy => $value
}

In that case no prefixing with the module name is required.

Defaults

If no value is specified, in none of the mentioned data sources, modules refer to default values. Those are defined in modulename::params (manifests/params.pp). Each module shall define the most sensible defaults.

puppet-module-slapd's People

Contributors

mxey avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.