From 2a3abe58a633b7b635c57d690905af28b7273b93 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 4 Aug 2010 06:41:39 +0800 Subject: Fix the Usage example so it parses and orders properly --- README.markdown | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 62b9209..3f32509 100644 --- a/README.markdown +++ b/README.markdown @@ -29,20 +29,25 @@ their changes will be incorporated into the puppet managed motd.
 # class to setup basic motd, include on all nodes
 class motd {
-   concat{"/etc/motd":
+   include concat::setup
+   $motd = "/etc/motd"
+
+   concat{$motd,
       owner => root,
       group => root,
       mode  => 644
    }
 
    concat::fragment{"motd_header":
+      target => $motd,
       content => "\nPuppet modules on this server:\n\n",
-      order   => 1,
+      order   => 01,
    }
 
    # local users on the machine can append to motd by just creating
    # /etc/motd.local
    concat::fragment{"motd_local":
+      target => $motd,
       ensure  => "/etc/motd.local",
       order   => 15
    }
-- 
cgit v1.2.3