We use facter-dot-d as well, but we also take advantage of 'calling_module' 
for grouping.  This param is automatically available to heira.

Here is our heira.yaml (role is in facter.d)

:hierarchy: - %{environment}/%{fqdn}
            - %{environment}/%{role}
            - %{environment}/%{calling_module}
            - %{environment}
            - common/%{role}
            - common/%{calling_module}
            - common

On Thursday, December 6, 2012 12:27:51 PM UTC-5, Jakov Sosic wrote:
>
> Hi. 
>
> I'm currently using hiera in a very rudimentary way, using only perhost 
> and common. 
>
> Now, I'm trying to group my hosts a little bit, so for example web 
> servers could have their own yaml with data. Problem is I don't have an 
> idea how to group hosts? How can I say to puppet that for example hosts: 
>
> storage01 
> storage02 
> storage03 
> storage04 
>
> belong to group storage_nodes, and 
>
> web01 
> web02 
>
> belong to group web_nodes? 
>
>
> How do you do that? 
>
>
> Thank you 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/L0487ZayqvAJ.
To post to this group, send email to puppet-users@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