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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -