I want to run the following salt state from one minion onto another minion
restart_mysql_on_other_nodes:
cmd.run:
- name: service mysql restart
Is this possible? If yes, How do I do it?
I don't want to run the salt directly from master as there are some dependencies on the minion, post which the above salt must run.
If you want to run any cmd from one server to another it will be done via SSH but since you want to run salt-state it is not possible.
As you said you have dependencies on one minion post which you want to trigger salt-state to another server, that will be achieved using salt orchestration
The most common use case of salt orchestration is when we want to restart any webserver of services in different VMs we can use it.
Ex: