summaryrefslogtreecommitdiffstats
path: root/examples/code/modules/sample-module/manifests/init.pp
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-15 17:24:26 +0200
committerLuke Kanies <luke@madstop.com>2007-08-15 17:24:26 +0200
commit6ff461b8c2fb026398626754f055fca32c7624a4 (patch)
treefcca92078cae10d9c338e58753232d13ad6eb0b7 /examples/code/modules/sample-module/manifests/init.pp
parent9208931005d55729f2f8f38ad618f019a910d778 (diff)
parent58e3855bb1c98e45f7e366d0f1fc6d834e0e5e43 (diff)
downloadpuppet-6ff461b8c2fb026398626754f055fca32c7624a4.tar.gz
puppet-6ff461b8c2fb026398626754f055fca32c7624a4.tar.xz
puppet-6ff461b8c2fb026398626754f055fca32c7624a4.zip
Merge branch 'master' of http://northstarlabs.net/git/puppet
Diffstat (limited to 'examples/code/modules/sample-module/manifests/init.pp')
-rw-r--r--examples/code/modules/sample-module/manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/code/modules/sample-module/manifests/init.pp b/examples/code/modules/sample-module/manifests/init.pp
new file mode 100644
index 000000000..1af8dff1f
--- /dev/null
+++ b/examples/code/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")
+}