You can pass the file name as a variable as long as you assign a value
to the variable before you include the class.
For example:
class basenode {
include postgresql
include monit
include wiki
include apace
}
node 'freebeerontuesdays.com' {
$monit_config = "/etc/monit/monitrc"
include basenode
}
On Jul 23, 5:17 pm, Richard Crowley <[email protected]> wrote:
> On Fri, Jul 23, 2010 at 1:10 PM, Peter Berghold <[email protected]>
> wrote:
> > First question that comes to mind: is there a fact for a given node that
> > determines what file name to use?
>
> This sounds like a job for an external node classifier that picks a
> set of classes to apply to the node.
>
> http://docs.reductivelabs.com/guides/external_nodes.html
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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.