Browse files

update readme

add formatting and status link for travis
  • Loading branch information...
1 parent c2cc6dd commit 1b91593d8e10b7dff38db5a9584b17058dfaefbf Dan Bode committed Mar 5, 2013
Showing with 20 additions and 15 deletions.
  1. +20 −15 README.md
View
35 README.md
@@ -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
-
-Then puppet code can consume the hash parameters and convert then into resources
-
-class webserver::instances (
- $instances = {}
-) {
- create_resources('webserver::instance', $instances)
-}
+ 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.

0 comments on commit 1b91593

Please sign in to comment.