Hi, You could use facter-dot-d to set a fact on those servers specifying the name of a storagegroup or a webcluster and then use that fact in your hiera hierarchy
so you could have /etc/facter/facts.d/servertype.yaml with content servertype: storage_node ( or web_node ) Have in /etc/puppet/hiera.yaml :hierarchy: - %{servertype} and in your hieradata dir a file storage_node.yaml and web_node.yaml with the settings you like. Another way is to set the param servertype via an ENC and use the same hierarchy and files. Regards, Stefan Goethals On Thu, Dec 6, 2012 at 6:27 PM, Jakov Sosic <jso...@srce.hr> 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 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. > > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.