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

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -