On 12/20/2010 05:46 PM, rjl wrote:
> Hi Felix,
> Actually, it will not apply to each client. Each of my clients knows
> what role it plays. That is set in a facter variable ($osp_type) on
> the client. So, the entire code block looks like this...
> 
> case $osp_type {
>    adm: { node "${fqdn}" { include adm }  }
>    ing: { node "${fqdn}" { include ing }  }
>    rep: { node "${fqdn}" { include rep }  }
>    oss: {  node "${fqdn}" { include oss }  }
>    mds: {  node "${fqdn}" { include mds }  }
>    default: { notice("Could not resolve role for ${fqdn}") }
> }

Those node declarations are still spurious. Also, I don't think nodes
can be declared in case branches like that, so this is probably the error?

Just write

case $osp_type {
   adm: { include adm }
   ...
}

HTH,
Felix

-- 
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