-
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
Improve pillar include documentation #35521
Comments
Ran into a similar issue today in 2016.3.2.
... in pillar files an absolute path is needed:
Maybe this is related. |
@oliver-dungey looks like this is a duplicate of #8875 although as you state the documentation states it does work. Can you point me to which documentation you are referring to? If that is the case we will need to change issue 8875 from a feature to a bug to get that fixed. Once I have that information from you we will go ahead and close this issue adn track this issue on 8875. Thanks! @DaveOHenry I think you are right in that the fix for the includes to work with relative paths might be related to your situation but just to make sure they are not two seperate fixes will you please open an issue with what you are seeing and we can just link your issue to 8875 but keep it open in case they are seperate fixes. |
@Ch3LL Sorry, should have taken note of that - I've had a search around but can't find the page I was thinking of. What I have noted on searching around again is that the Pillar Walkthrough page doesn't mention include or talk about init files (https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html) and Storing Static Data in The Pillar (https://docs.saltstack.com/en/latest/topics/pillar/) only has very simple include examples and no mention of init files. |
@oliver-dungey okay cool I will keep the feature tag on that same issue because it seems we do not document that it is possible for pillar. I will change the title of this issue report and we will keep this open to track the documentation improvements to add mention of init files with pillar includes. Thanks |
Also to note I think it would be smart to temporarily add to the documentation taht currently relative paths are not supported for pillar in the docs until that feature has been completed. |
+1 I just assumed they would behavior the same way.
|
The work around for the missing enhancement is
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
In formula init files you can use relative path include syntax i.e. put a dot a the beginning of the line and it knows it is relative. The documentation on pillar suggests that the same should be possible but it appears to be failing:
/srv/pillar/top.sls:
/srv/pillar/buzz/init.sls
/srv/pillar/buzz/stuff.sls
Then run salt-call pillar.items and there is an error at the top and the pillar data is missing:
If I then specify an absolute path it works i.e. change the init.sls file to:
Versions Report
The text was updated successfully, but these errors were encountered: