salt icon indicating copy to clipboard operation
salt copied to clipboard

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

Open faivirol opened this issue 4 years ago • 5 comments

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

faivirol avatar Nov 24 '22 04:11 faivirol

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!

welcome[bot] avatar Nov 24 '22 04:11 welcome[bot]

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.

dwoz avatar Oct 15 '26 22:10 dwoz

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.

peterupton avatar Oct 16 '26 15:10 peterupton

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

dwoz avatar Oct 17 '26 01:10 dwoz

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.

dwoz avatar Oct 28 '26 02:10 dwoz