Is there a simple way to count the number of minions returned by a match, for example:
salt -C 'G@ec2_roles:test' match.count
Is there a simple way to count the number of minions returned by a match, for example:
salt -C 'G@ec2_roles:test' match.count
You can add
--summary
to any salt call like:The you will get an report at the end of the execution which tells you how many minions were targeted:
You could change the output format and run it through wc: