Skip to content

Minion has the option to skip pillars - #67216

Draft
jfindlay wants to merge 1 commit into
saltstack:masterfrom
jfindlay:skip_initial_pillar
Draft

jfindlay wants to merge 1 commit into
saltstack:masterfrom
jfindlay:skip_initial_pillar

Conversation

@jfindlay

@jfindlay jfindlay commented Feb 1, 2025

Copy link
Copy Markdown
Contributor

This adds a new boolean flag --skip-init-pillar to salt-call and a boolean option skip_init_pillar: true (default false) to minion config. Judicious skipping of the initial pillar, or the copy of pillar rendered upon minion startup, can greatly speed up things like salt-call test.ping and eliminate redundant pillar rendering. Warning: Enabling this in minion config is likely to break some pillar related functionality.

salt-call --no-skip-init-pillar can be used to interactively override any skip_init_pillar: true config in /etc/salt/minion in the event that you do want the initial pillar (e.g. when using salt-call pillar.get). This flag is automatically supplied when salt-call detects that the function is from the pillar family.

What does this PR do?

What issues does this PR fix or reference?

Fixes

Previous Behavior

Remove this section if not relevant

New Behavior

Remove this section if not relevant

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dwoz
dwoz force-pushed the skip_initial_pillar branch from 657c2db to 36a643d Compare February 3, 2025 11:19
@dmurphy18 dmurphy18 added this to the Argon v3008.0 milestone Mar 13, 2025
@twangboy twangboy modified the milestones: Argon v3008.0, Argon v3008.1 Jun 5, 2026
@dwoz dwoz added the test:full Run the full test suite label Jun 19, 2026
@twangboy twangboy modified the milestones: Argon v3008.1, Argon v3008.2 Jun 24, 2026
This adds a new boolean flag `--skip-init-pillar` to salt-call and a
boolean option `skip_init_pillar: true`  (default `false`) to minion
config. Judicious skipping of the initial pillar, or the copy of pillar
rendered upon minion startup, can greatly speed up things like
`salt-call test.ping` and eliminate redundant pillar rendering. Warning:
Enabling this in minion config is likely to break some pillar related
functionality.

`salt-call --no-skip-init-pillar` can be used to interactively override
any `skip_init_pillar: true` config in `/etc/salt/minion` in the event
that you do want the initial pillar (e.g. when using `salt-call
pillar.get`). This flag is automatically supplied when `salt-call`
detects that the function is from the pillar family.
@dwoz

dwoz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@jfindlay Is this something you would like to pursue for 3009?

This branch was previously deployed

1 inactive deployment
ci — 03986efc Deployed Jun 26, 2026 by dwoz via Build Onedir Packages / macOS (x86_64) #24770
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants