Hiera: define role based on group of hosts

asked 2014-05-21 19:21:31 -0600

Cyril gravatar image

updated 2014-05-21 19:24:53 -0600

Hi :)

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:

nodeX.yaml

class glusterfs
glusterfs::brick_path=/path/to/brick

Farm1.yaml

Farm_name:
 peers: 
  -"node1":
   state=master
  -"node2":
   state=backup

...

Thanks :)

edit retag flag offensive close merge delete