diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-07-10 19:52:26 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-07-10 19:52:26 +1000 |
| commit | 605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52 (patch) | |
| tree | bfab41f07b972f61585ef2fcf454ad9fdef6c832 /examples/modules/sample-module/manifests | |
| parent | d25c2b282cc4cd703bba3d2457f93431098ddc85 (diff) | |
| download | puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.gz puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.xz puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.zip | |
Moved debian to conf and updated examples directory
Diffstat (limited to 'examples/modules/sample-module/manifests')
| -rw-r--r-- | examples/modules/sample-module/manifests/init.pp | 12 |
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") +} |
