summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rails/reference_serializer.rb
diff options
context:
space:
mode:
authorDan Bode <bodepd@gmail.com>2011-03-16 14:26:04 -0500
committerDan Bode <bodepd@gmail.com>2011-03-16 14:51:39 -0500
commit49059568d0e4e00bbc35d6f9b2a6cd23e7d00f46 (patch)
tree264b915238c72af7eee1b959ebec992582cd66fa /lib/puppet/util/rails/reference_serializer.rb
parent17f673dd6fee08309970f8ff721855cf1644b45f (diff)
downloadpuppet-49059568d0e4e00bbc35d6f9b2a6cd23e7d00f46.tar.gz
puppet-49059568d0e4e00bbc35d6f9b2a6cd23e7d00f46.tar.xz
puppet-49059568d0e4e00bbc35d6f9b2a6cd23e7d00f46.zip
(5909) Function to dyncamically generate resources.
This function allows you to dynamically generate resources, passing them as a hash to the create_resources function. This was originally written to be used together with an ENC. Resources can be programitally generated as yaml and passed to a class. 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.
Diffstat (limited to 'lib/puppet/util/rails/reference_serializer.rb')
0 files changed, 0 insertions, 0 deletions