Hiera: define role based on group of hosts
Here is the deal:
I want to create some role based on group of nodes. For example create 2 glusterfs farm with 2 nodes eachs.
So I'm looking for a way to define in yaml file something like:
class glusterfs glusterfs::brick_path=/path/to/brick
Farm_name: peers: -"node1": state=master -"node2": state=backup