summaryrefslogtreecommitdiffstats
path: root/examples/modules/sample-module/manifests/init.pp
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-07-29 00:46:11 -0500
committerLuke Kanies <luke@madstop.com>2008-07-29 00:46:11 -0500
commit40375a8fc34dbd85d87f507ba72c7394b25b7271 (patch)
treeefd5a93980b042b73322bd31e6fdb41203d07576 /examples/modules/sample-module/manifests/init.pp
parent93eeff59d807261ed154cc104e318ae604602430 (diff)
parent8f5800f0608dff46407cb5f23ee73f314fe051e8 (diff)
downloadpuppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.tar.gz
puppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.tar.xz
puppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.zip
Merge branch '0.24.x' into merging
Conflicts: test/ral/type/filesources.rb
Diffstat (limited to 'examples/modules/sample-module/manifests/init.pp')
-rw-r--r--examples/modules/sample-module/manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/modules/sample-module/manifests/init.pp b/examples/modules/sample-module/manifests/init.pp
new file mode 100644
index 000000000..1af8dff1f
--- /dev/null
+++ b/examples/modules/sample-module/manifests/init.pp
@@ -0,0 +1,12 @@
+# Jeff McCune <jeff.mccune@northstarlabs.net>
+#
+# Demonstration of a custom parser function and erb template within
+# a module, working in concert.
+
+class sample-module {
+ $fqdn_to_dn = hostname_to_dn($domain)
+ $sample_template = template("sample-module/sample.erb")
+
+ notice("hostname_to_dn module function returned: [$fqdn_to_dn]")
+ info("sample.erb looks like:\n$sample_template")
+}