usage of defines in node blocks and external nodes never played nicely, your
best way at the moment, would be to create classes which you can include via
Foreman.
(Once hashes becomes part of puppet e.g. in 2.6 - I'm guessing it would be
much easier).
Ohad
On Fri, Jul 16, 2010 at 1:51 AM, Jon Cho
I currently have a define for setting up files in /etc/apt/preferences.d
for different packages on different machines:
define apt::preferences (
$pattern,
$pin,
$pin_priority) {
$cont = "Package: #{pattern}
Pin: #{pin}
Pin-Priority: #{pin_priority}"
file{"