[FEATURE REQUEST] Add --relenv
Option to salt-ssh
for Using a Onedir Bundled Version of Salt+Python
#66877
Labels
Milestone
Summary:
This feature request proposes adding a
--relenv
option tosalt-ssh
that allows downloading and using a bundled version of Salt and Python (relenv) on the SSH target, similar to how the--thin
option works. This will serve as a transitional feature towards makingrelenv
the default method for Salt-SSH deployments in the future.Description:
Currently,
salt-ssh
uses the--thin
option to copy a minimal version of Salt to the SSH target, along with Python dependencies, and then run Salt remotely. However, with the increasing preference for usingrelenv
bundled environments (Salt and Python packaged together), it would be ideal to introduce a--relenv
option that downloads and uses a one-directory (onedir) version of Salt+Python on the target machine.The
--relenv
option would follow a similar flow as--thin
, but instead of copying a minimal installation, it would download and unpack arelenv
bundle (which includes both Salt and Python). This could be useful for environments where managing Python versions and dependencies on the target machine is difficult or where a fully isolated environment is desired.Expected Behavior:
When a user runs
salt-ssh
with the--relenv
option, Salt should:relenv
support on the target: Ensure that the target system can support therelenv
bundle.relenv
bundle: Retrieve the pre-packaged Salt+Python bundle (possibly from a pre-configured URL or file server).This option will allow users to run Salt on machines that may not have Salt or Python pre-installed or where version conflicts exist.
Proposed CLI Syntax:
Additional options for managing the
relenv
bundle can include paths to the local or remote onedir package, force re-download, etc.Justification:
The
relenv
bundle represents the future direction for Salt deployments, and adding this as an optional feature insalt-ssh
will enable users to transition smoothly to the new system. It also simplifies Salt-SSH deployments on targets that have conflicting or missing Python versions and dependencies.Current Behavior:
The current
salt-ssh
approach uses--thin
to transfer a lightweight Salt environment. This requires Python to be present on the target and can run into compatibility issues depending on the target’s system configuration.Additional Context:
relenv
can eventually become the default forsalt-ssh
.salt
on the targetssalt-ssh
The text was updated successfully, but these errors were encountered: