Page MenuHomeDevCentral

Lint if salt:// files exist
Open, WishlistPublic

Description

79fd06342bb024ce gives an example of fix where before the test would fail, after it would work.

As we can define several roots for states, we can just do the check for source: salt://roles/... without any need to query rSTAGING.

It can be templated, if so we can skip it for "lint the repo", and do the check afterwards for "lint the built config", as part of https://infra.nasqueron.org/config/ linting.

Event Timeline

dereckson triaged this task as Wishlist priority.Mar 4 2023, 13:38
dereckson created this task.
dereckson updated the task description. (Show Details)
dereckson updated the task description. (Show Details)

With @DorianWinty we prepared a draft regexp: salt://(%%source%%/[0-9a-zA-Z/\.-_]+)

Also, D2853 offers a nice thing to link to: we need to ensure if the source file: value matches the filename.