-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support relative includes for pillar #8875
Comments
Sounds reasonable to me. Thanks for the request! |
+1 |
2 similar comments
+1 |
+1 |
It seems to be broken in general. See also #14497. |
Very possible, thanks for tagging these together @eliasp. |
+1
something/another.sls
|
To complement this issue, this is how to live now with workaround which I personally use extensively. WorkaroundPush a variable with location of the pillar into the pillar template being included using ExampleThe top file is not used, but it's important to note that it cannot use All we need to do is to list the first "entry point" pillar which will
Include pillar and tell it where it is located using
Include other pillars relatively:
Proper complicationBecause you don't know (or you don't want to keep this in mind) whether any pillar subsequently includes relatively anything else or not, the safest way is to pass
or wrapped in a loop:
ConclusionIt's ugly, but it works. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
…o we assign vault-ssl manually to salt-masters
+1 |
@meggiebot please add Labels Core & Pillar if appropriate. |
Hi, it is also the case when one |
+1 |
+1 |
There is a 👍 functionality in GitHub nowadays ... there is no need to +1 anymore, because it only create unneeded notifications, thanks. |
Just hit this very same issue too. Will change my formulas to use the absolute path instead of relative. |
@Ch3LL can this request be escalated into the up coming release its such a large difference between states and pillars. |
ping @saltstack/team-core anyone have interest in tackling this one? |
The following is support in states however not supported in pillar
Lets keep this on the radar if you want this in pillars, please thumbs up the original comment/description |
+1 |
Allow pillar relative includes Fixes saltstack#8875 and Fixes saltstack#56186
Fixes saltstack#8875 - a longstanding issue
The dot notation that's supported for relative includes in state files (
include: - .other
) doesn't seem to work for pillar. Would be just as useful there.The text was updated successfully, but these errors were encountered: