update readme

add formatting and status link for travis
This commit is contained in:
Dan Bode
2013-03-05 11:18:11 -08:00
parent c2cc6ddadc
commit 1b91593d8e

View File

@@ -1,3 +1,8 @@
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
@@ -10,21 +15,21 @@ 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
classes:
webserver::instances:
instances:
instance1:
foo: bar
instance2:
foo: blah
Then puppet code can consume the hash parameters and convert then into resources
Then puppet code can consume the hash parameters and convert then into resources
class webserver::instances (
$instances = {}
) {
create_resources('webserver::instance', $instances)
}
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.