Puppet Class: snd

Defined in:
manifests/init.pp

Summary

Module to search a string within a file. If found, either display summary a message, or remove it.

Overview

Class: snd

Full description of class snd here.

Parameters

Document parameters here.

  • sample parameter Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”

Variables

Here you should define a list of variables that this module would require.

  • sample variable Explanation of how this variable affects the function of this class and if it has a default. e.g. “The parameter enc_ntp_servers must be set by the External Node Classifier as a comma separated list of hostnames.” (Note, global variables should be avoided in favor of class parameters as of Puppet 2.6.)

Examples

Authors

steroidg(at)gmail(dot)com

Copyright 2017 steroidg.

An example class.

This is an example of how to document a Puppet class

Examples:

class { 'snd':
  servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}

Declaring the class

include snd

Parameters:

  • search_items (Hash) (defaults to: {check => 'UNSET'})

    List of search items



55
56
57
58
59
60
61
62
63
64
65
66
# File 'manifests/init.pp', line 55

class snd (
  Hash $search_items = {check => 'UNSET'}
) {
  include snd::params

  $search_items_real = $search_items ? {
    {check  => 'UNSET'} => $::snd::params::search_items,
    default => $search_items,
  }

  create_resources(snd::search_and_destroy, $search_items_real)
}