blob: 1b7df032ab8789769ad3bc25c366af378b296f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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")
}
|