Skip to content

[DOCS] Document how to install optional dependencies for Salt #64291

Closed as not planned

Description

@dehnert

Description
I was previously running 3004.1 and had working states using the virt module. That requires the libvirt Python module, so I installed the python3-libvirt package, which worked. I then installed 3006.1 using the instructions, and the states complained that the virt module is missing. Given that I had the Python libvirt module installed, this was confusing. Judging by https://docs.saltproject.io/salt/install-guide/en/latest/topics/upgrade-to-onedir.html#upgrade-to-onedir, I think the recommended approach is to install with pip and that will install in Salt's Python install, not the global one, but I think it would be useful to be more explicit about that. I'm used to using Ubuntu packages to install Python libraries when available, and no longer supporting that feels like a big change.

Suggested Fix
Add improved documentation of how to install optional dependencies

Some places I could see this being helpful:

Type of documentation
This could be Salt documentation, Salt modules, the Salt Repo or the Getting Started guide.

Could impact all of these

Location or format of documentation
https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/ubuntu.html is what I was following

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    documentation
    on May 17, 2023
  2. welcome commented on May 17, 2023

    @welcome

    Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
    Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

    There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
    If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

  3. added
    salt install guide
    severity-high
    and removed on May 17, 2023
  4. barbaricyawps commented on May 17, 2023

    @barbaricyawps
    Contributor

    @dehnert , I think you're not the only one who is confused by this new approach. I'll work with the team to see if we can make the instructions more clear about installing into the Salt Python rather than the global one.

  5. OrangeDog commented on May 18, 2023

    @OrangeDog
    Contributor

    The main issues continue to be:

    • The only mention of onedir dependencies is in the upgrade instructions, which new users will not look at.
    • All the module documentation assumes a regular (classic) system install if gives instructions for its dependencies. IMO they should not give instructions, only detail what the dependencies are.
  6. ITJamie commented on May 24, 2023

    @ITJamie
    Contributor

    again that notice about needing to use salt-pip or needing to update states to have bin_env declared with installing salt pip packages needs to be a warning block at top of all the install guides

  7. barbaricyawps commented on May 25, 2023

    @barbaricyawps
    Contributor

    I have a Salt install guide merge request open to resolve this issue if any of you want to check it out and provide comments: https://gitlab.com/saltstack/open/docs/salt-install-guide/-/merge_requests/119

    I recommend looking at the rendered doc previews I link in the merge request to see how they will look in the final docs.

    Be aware that adding links to the install docs from all of the module docs is out of scope for now, but I've noted that as a tech debt item we might want to address as part of our module documentation improvement epic.

  8. barbaricyawps commented on Jun 1, 2023

    @barbaricyawps
    Contributor

    I merged in that merge request. I'm going to close this issue as fixed. Let me know if you need anything else!

  9. added this to the Potassium v3009.0 milestone on Jun 25, 2026
  10. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationsalt install guideseverity-hightime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions