Dan Bode 9a4fef865f first commit of create_resources module.
it was called accepts.

I added the ability to specify classes or definitions.
2011-02-24 20:38:33 -06:00

- License - GPL2
- Copyright - Puppetlabs 2011

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.


Description
No description provided
Readme Apache-2.0 49 KiB
Languages
Ruby 85.2%
Puppet 14.8%