summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jones <cmsj@tenshu.net>2010-08-04 06:41:39 +0800
committerR.I.Pienaar <rip@devco.net>2010-08-04 07:18:27 +0800
commit2a3abe58a633b7b635c57d690905af28b7273b93 (patch)
treee157e991ed6bcae18110c3d302eddbca512a72a7
parent18a78979923c6284562fd31fc4a080995fd364f8 (diff)
downloadpuppet-concat-2a3abe58a633b7b635c57d690905af28b7273b93.tar.gz
puppet-concat-2a3abe58a633b7b635c57d690905af28b7273b93.tar.bz2
Fix the Usage example so it parses and orders properly
-rw-r--r--README.markdown9
1 files 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.
<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
}