Sha256: a259aaf9d692891ce7793caa5cc1242d884a10f09469b7f592da2f2203e3ee59

Contents?: true

Size: 1.07 KB

Versions: 63

Compression:

Stored size: 1.07 KB

Contents

build status of unit tests:

[![Build Status](https://travis-ci.org/puppetlabs/puppetlabs-create_resources.png?branch=master)](https://travis-ci.org/puppetlabs/puppetlabs-create_resources)


- License - Apache Version 2.0
- Copyright - Puppetlabs 2011

*NOTE* - this has exists in 2.7.x core, it has been published seperately
so that it can be used with 2.6.x

This module contains a custom function for puppet that can be used to dynamically add resources to the catalog.

I wrote this to use with an external node classifier that consumes YAML.

The yaml specifies classes and passes hashes to those classes as parameters

    classes:
      webserver::instances:
        instances:
          instance1:
            foo: bar
          instance2:
            foo: blah

    Then puppet code can consume the hash parameters and convert then into resources

    class webserver::instances (
      $instances = {}
    ) {
      create_resources('webserver::instance', $instances)
    }

Now I can dynamically determine how webserver instances are deployed to nodes
by updating the YAML files.


Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
kafo-0.6.2 modules/create_resources/README.md
kafo-0.6.1 modules/create_resources/README.md
kafo-0.6.0 modules/create_resources/README.md
kafo-0.5.5 modules/create_resources/README.md
kafo-0.5.4 modules/create_resources/README.md
kafo-0.5.3 modules/create_resources/README.md
kafo-0.3.17 modules/create_resources/README.md
kafo-0.5.2 modules/create_resources/README.md
kafo-0.5.1 modules/create_resources/README.md
kafo-0.5.0 modules/create_resources/README.md
kafo-0.4.0 modules/create_resources/README.md
kafo-0.3.16 modules/create_resources/README.md
kafo-0.3.15 modules/create_resources/README.md
kafo-0.3.14 modules/create_resources/README.md
kafo-0.3.13 modules/create_resources/README.md
kafo-0.3.12 modules/create_resources/README.md
kafo-0.3.11 modules/create_resources/README.md
kafo-0.3.10 modules/create_resources/README.md
kafo-0.3.9 modules/create_resources/README.md
kafo-0.3.8 modules/create_resources/README.md