diff options
| author | Luke Kanies <luke@madstop.com> | 2007-08-22 18:07:52 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-08-22 18:07:52 -0500 |
| commit | b9f529a063cabb183966da29739cd924836eb67b (patch) | |
| tree | c0056176c2ff82d0fe90dfc6c97826f6d79917a6 /examples/code/modules/sample-module/manifests/init.pp | |
| parent | 0682d7e473cfd8f2fe6bee9eae0868b846fd0d50 (diff) | |
| parent | 282ec893ef895e0d386126ba70494a3b086030b9 (diff) | |
| download | puppet-b9f529a063cabb183966da29739cd924836eb67b.tar.gz puppet-b9f529a063cabb183966da29739cd924836eb67b.tar.xz puppet-b9f529a063cabb183966da29739cd924836eb67b.zip | |
Merging the multi_env branch with master. There are not actually any conflicts, so this commit might only be necessary because I did not pull sufficiently often.
Diffstat (limited to 'examples/code/modules/sample-module/manifests/init.pp')
| -rw-r--r-- | examples/code/modules/sample-module/manifests/init.pp | 12 |
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") +} |
