mirror of
https://github.com/optim-enterprises-bv/puppetlabs-create_resources.git
synced 2025-11-02 03:08:33 +00:00
a872279ac59e7d89bbc0d315ea55421ca4d3e431
closes #1 Add Module metadata and links to the new module project page and git repository. Dan will update the Forge page.
- 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
Languages
Ruby
85.2%
Puppet
14.8%