diff options
| author | Jeffrey J McCune <jeff.mccune@northstarlabs.net> | 2007-08-14 09:50:42 -0400 |
|---|---|---|
| committer | Jeffrey J McCune <jeff.mccune@northstarlabs.net> | 2007-08-14 09:50:42 -0400 |
| commit | 58e3855bb1c98e45f7e366d0f1fc6d834e0e5e43 (patch) | |
| tree | e76dfcaf9411eb2764e407a8bf93f03fc26bd82b /examples/code/modules/sample-module/manifests | |
| parent | ab42534ae243c24c8c702e38195a954ab52eaed9 (diff) | |
| download | puppet-58e3855bb1c98e45f7e366d0f1fc6d834e0e5e43.tar.gz puppet-58e3855bb1c98e45f7e366d0f1fc6d834e0e5e43.tar.xz puppet-58e3855bb1c98e45f7e366d0f1fc6d834e0e5e43.zip | |
Added optional per-module lib directory.
Puppet now looks for a lib directory inside each module bundle, and adds
the directory to the list searched by Puppet::Util::Autoload.
The intent is to facilitate more sophisticated virtual types and flexibility
within modules.
Diffstat (limited to 'examples/code/modules/sample-module/manifests')
| -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") +} |
