Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
define putafile($yourvar) { file { "/etc/samba/smb.conf": ensure => present, content => template("putafile.erb") } Use it with eg putafile { "putanamehere": yourvar => "yourip" } In the template: <%= yourvar %>
This paste will be private.
From the Design Piracy series on my blog: