You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to replace reclass with saltclass because it has interesting features which I need.
But I encountered problems while testing saltclass.
Saltclass can't expand pillar value that is not of type 'str'. I tried to use yaml possibilities to reuse variables.
And I can see from these issues that they have existed since 2018. #50262 #61934 #52407
Given this, I have following questions:
Will you remove saltclass in the feature from the Core Modules / Supported Modules? Maybe you want to remove it completely and therefore do not solve this problem.
Could you advise me how I can reuse pillar variables using saltclass? Maybe there is a way to do this using jinja.
When you will solve problem with expanding pillar value that is not of type 'str'?
Setup
Example pillar data cat nodes/server01.test.local.yml
Steps to Reproduce the behavior
After this command
salt "server01.test.local" saltutil.refresh_pillar
I can see following errors in the /var/log/master file
[CRITICAL][2219096] Pillar render error: Failed to load ext_pillar saltclass: replace() argument 2 must be str, not list
or
[CRITICAL][2355663] Pillar render error: Failed to load ext_pillar saltclass: replace() argument 2 must be str, not dict
1 Call salt -v "server01.test.local" pillar.get test:S2
It works as expected.
Output:
server01.test.local:
----------
test:S2:
Test S1
2 Call salt -v "server01.test.local" pillar.get test:L2
Output:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
I used to use reclass (http://reclass.pantsfullofunix.net/) for pillar data.
Now I use its fork https://github.com/salt-formulas/reclass because it was rewritten on python3.
I want to replace reclass with saltclass because it has interesting features which I need.
But I encountered problems while testing saltclass.
Saltclass can't expand pillar value that is not of type 'str'. I tried to use yaml possibilities to reuse variables.
And I can see from these issues that they have existed since 2018.
#50262
#61934
#52407
Given this, I have following questions:
Setup
Example pillar data
cat nodes/server01.test.local.yml
Steps to Reproduce the behavior
After this command
salt "server01.test.local" saltutil.refresh_pillar
I can see following errors in the /var/log/master file
1 Call salt -v "server01.test.local" pillar.get test:S2
It works as expected.
Output:
2 Call salt -v "server01.test.local" pillar.get test:L2
Output:
3 Call salt -v "server01.test.local" pillar.get test:D2
Output:
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: