salt '*' cmd.run 'hostname'
In above cmd => function and run => module function of main function, you can also write your own function and many people already made many of them, you can also use them.
salt '*' disk.usage
Above function is for disk usage
salt '*' pkg.install cowsay
Above function is for package install
salt '*' network.interfaces
Now you can define run task in single file top.sls
base:
'*':
- common
'minion1':
- nettools