Skip to content

[DOCS] Add how to target on pillars from specific pillarenv #63110

Closed as not planned

Description

@faivirol

Description
I don't know how to target based on pillars from a specific pillarenv in CLI commands. I can set the pillarenv when executing state.apply, and this works for targeting in top.sls, but how do I do the same for CLI commands (for example salt -I 'key:value' test.ping where key exists in a non-base pillarenv)?

Suggested Fix
Add documentation for existing behavior and, if not implemented, make targeting possibilities the same between top.sls and the CLI the same.

Location or format of documentation
https://docs.saltproject.io/en/latest/topics/targeting/pillar.html

Activity

  1. added
    documentation
    on Nov 24, 2022
  2. welcome commented on Nov 24, 2022

    @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
    doc-request
    on Nov 24, 2022
  4. added
    severity-medium
    and removed on Nov 28, 2022
  5. added this to the Sulphur v3006.27 milestone on Jun 25, 2026
  6. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  7. peterupton commented on Oct 16, 2026

    @peterupton

    The 3008.x docs explain pillarenv for state.apply, but the pillar-targeting guide still does not explain how -I interacts with a specific pillarenv or the master’s cached pillar data. The use case described here remains unclear and undocumented.

  8. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69560.

  9. reopened this on Oct 17, 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

    Pillardoc-requestdocumentationseverity-mediumtime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions