You can put the `salt-run` script on a masterless minion by installing
the `salt-master` package, even if you don't start or use the Master
daemon. That said, a lot of Runner functions are expecting to be run
from a Master which means they're expecting a running Master daemon
and an active ZMQ connection to send commands through.
To your question about writing for Orchestrate states vs regular
Minion-side states: Orchestrate is just a Master-side state run, it
has access to all the same state functions and uses 99% of the same
code-paths as a Minion-side state run. A good rule-of-thumb is to
write most all your states as though they will run locally, directly
on the system they are configuring. And then the role of Orchestrate
is to call those already-written states and perform any cross-minion
coordination. In a Masterless setup there is obviously no cross-minion
coordination and so you simply call the same states directly that
Orchestrate would have called.
Hopefully that's helpful, if a little high-level. If you have more
questions or if there are gray-areas, please post some code snippets
that we can explore.
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.