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 <r...@rcrowley.org> wrote:
> On Fri, Jul 23, 2010 at 1:10 PM, Peter Berghold <salty.cowd...@gmail.com> 
> 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 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.

Reply via email to