Sha256: 1ba9b1c065e305e7a43a70319e13ddbd587e0f34ab22bf6fadbd14ad8a259949

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

# 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")
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-3.0.2 examples/modules/sample_module/manifests/init.pp
puppet-3.0.2.rc3 examples/modules/sample_module/manifests/init.pp
puppet-3.0.2.rc2 examples/modules/sample_module/manifests/init.pp
puppet-3.0.2.rc1 examples/modules/sample_module/manifests/init.pp
puppet-3.0.1 examples/modules/sample_module/manifests/init.pp
puppet-3.0.1.rc1 examples/modules/sample_module/manifests/init.pp