I think you would have each host export
@@host { $fqdn:
...,
tag => ''mygroup'',
}
then also have each host consume those hosts
Host <<| tag == ''mygroup'' |>>
On Tue, Mar 22, 2011 at 7:40 AM, danh <dthfoo@gmail.com>
wrote:> Hello all,
>
> I am trying to work out how to populate "/etc/hosts" with the IPs
and
> names of all nodes in a group.
>
> For instance, I define a node "webserver" and derive all my
webservers
> from it so I want to populate "/etc/hosts" with the IPs and names
of
> all the nodes that derive from "webserver".
>
> Can someone clue me in?
>
> Cheers,
>
> Dan.
>
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.