saltstack / saltstack/salt

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

Open
#63,110 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc-request documentation Pillar severity-medium time-estimate-sprint
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pillar targeting documentation at the linked location and reproduce the salt -I 'key:value' test.ping example using a non-base pillarenv. Determine whether the behavior is already documented or whether CLI targeting differs from top.sls; done means documenting the existing behavior or clearly defining the required parity change.

Written by the indexing model from the issue text.

Assessment

Domain
cli, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.