contextvars requirement
#66664
-
|
I'd like to understand the context which leads
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Salt-SSH works by packing Salt and dependencies into a so-called thin tarball. Essentially, it copies Salt + its hard dependencies from the master into a tar archive that is sent to the target. In case Salt-SSH connects to a target with a Python version of 3.6 or lower, it needs a To discover the sources, |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! That was super useful. This gives me a couple viable routes to explore with our current plan to build some tooling that requires tight integration with a masterless salt minion. |
Beta Was this translation helpful? Give feedback.
Salt-SSH works by packing Salt and dependencies into a so-called thin tarball. Essentially, it copies Salt + its hard dependencies from the master into a tar archive that is sent to the target. In case Salt-SSH connects to a target with a Python version of 3.6 or lower, it needs a
contextvarsmodule that can be packed into the thin tar.To discover the sources,
salt.utils.thinimports the module and references<mod>.__file__. The stdlibcontextvarsimports from_contextvarsitself, which does not work with this mechanism, while the library is self-contained.