I had a bit of a play with this today and couldn't get anything working...
(I am something of as puppet newbie as you can tell so go easy on me!).
In Jeff's example above:
---
# motd module:
class motd($motd_content='UNSET') {
$motd_content_real = $motd_content ? {
UNSET => template("motd/motd.erb"),
default => $motd_content,
}
# Manage the message of the day
file { "/etc/motd":
content => $motd_content_real,
}
}
---
Are you actually trying to overload the real motd module? Would this not
require a module path set with the site module in front of the real one?
I figured not as I'm not so sure this is intended to work in puppet (?), so
I was trying things with inheritance along the lines of:
# site::motd module:
class site::motd($motd_content='UNSET') inherits motd {
$motd_content_real = $motd_content ? {
UNSET => template("motd/motd.erb"),
default => $motd_content,
}
...
}
But couldn't get it to work. Have I got the wrong end of the stick
completely?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/OstKxH3gGrsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.