Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minion has the option to skip pillars #67216

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfindlay
Copy link
Contributor

@jfindlay jfindlay commented Feb 1, 2025

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.

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 force-pushed the skip_initial_pillar branch from 657c2db to 36a643d Compare February 3, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants