summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-02-23 14:05:56 -0500
committerJeff McCune <jeff@puppetlabs.com>2011-02-23 14:05:56 -0500
commit384ffd957153f65eb4f47b3142d98853c31b4124 (patch)
treea46170c873e3e93a3261a1a93eb72a8466e8abba /templates
Initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/README.markdown23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/README.markdown b/templates/README.markdown
new file mode 100644
index 0000000..575bbea
--- /dev/null
+++ b/templates/README.markdown
@@ -0,0 +1,23 @@
+Templates
+=========
+
+Puppet supports templates and templating via ERB, which is part of the Ruby
+standard library and is used for many other projects including Ruby on Rails.
+Templates allow you to manage the content of template files, for example
+configuration files that cannot yet be managed as a Puppet type. Learn more at
+http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating
+
+You can use templates like this:
+
+ class myclass {
+ package { mypackage: ensure => latest }
+ service { myservice: ensure => running }
+ file { "/etc/myfile":
+ content => template("mymodule/myfile.erb")
+ }
+ }
+
+The templates are searched for in:
+
+ $templatedir/mymodule/myfile.erb
+ $modulepath/mymodule/templates/myfile.erb