saltstack / saltstack/salt

Feature request - Optional glob matching in requisites

Open
#61,492 1 comment 0 reactions 1 assignee View on GitHub

@twangboy is already working on this.

Since Jan 20, 2022.

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

Description

Given the below:

foo:
  cmd.run:
    - name: bar
    - watch:
      - /foo/bar/*

In the present Salt behaviour, /foo/bar/* is a hard glob (i.e. if no state ID or name matches, it will result in an error).

It makes a lot of sense to allow optional globbing. i.e. in pseudo-code...

if exists(/foo/bar/*) {
    do it
} else {
    continue
}

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.