salt stack - Assign role by running process -
i'd assign role various minions based on process running. example can this
salt '*' cmd.run 'ps ax |grep [n]amed'
this returns servers running bind, since runs against (*) not dns servers else, albeit blank return data. there way return servers true, , pipe grains.setval role nameserver?
thanks!
Comments
Post a Comment