]> gitweb.fluxo.info Git - puppet-concat.git/commitdiff
Fix the Usage example so it parses and orders properly
authorChris Jones <cmsj@tenshu.net>
Tue, 3 Aug 2010 22:41:39 +0000 (06:41 +0800)
committerR.I.Pienaar <rip@devco.net>
Tue, 3 Aug 2010 23:18:27 +0000 (07:18 +0800)
README.markdown

index 62b9209151d86262f9ab4feb9dcf9df792b1f551..3f32509770a18f71785508dda4983a29d7059e3a 100644 (file)
@@ -29,20 +29,25 @@ their changes will be incorporated into the puppet managed motd.
 <pre>
 # 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
    }