I believe you're looking for templates. http://docs.puppetlabs.com/guides/templating.html
As an example: file { "/etc/hosts": content => template("hosts.erb") } And the template would contain this: 127.0.0.1 localhost 192.168.99.99 <%= hostname %> <%= fqdn %> -Ben -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.