saltstack / saltstack/salt

Enhancement request: wider contents_pillar support for salt.states.file

Open
#55,851 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Currently only file.managed supports the contents_pillar directive.

It would be incredibly useful if it was more widely supported within salt.states.file, for example file.append.

As far as I can tell, at the present time it is not at all possible to reference pillars from, for example, file.append ?

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 in the salt.states.file implementation, comparing the existing file.managed handling of contents_pillar with file.append and other file state functions. Define which functions should support the directive and verify that the requested pillar-backed behavior works consistently for those entry points.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.