I have take it out of the case statement to try to resolve the
problem. Here is an example. I receive the same error from this...
$tmp = "deving0109.cdntools.nsatc.net"
node "${tmp}" { include adm }
But this works just fine...
node "deving0109.cdntools.nsatc.net" { include adm }
On Dec 20, 9:51 am, Felix Frank <[email protected]>
wrote:
> 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 [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.