Python-based project of salt stack

0 votes

So, I've been using saltstack for a while now and was wondering that if can use Python instead of YAML. In my opinion pythons is much more clear. But, all the advanced samples I see are building multiple sls yaml files that work together.

I just want to know if there's a way to that I can code mainly in python instead of yaml.

Jun 5, 2018 in Other DevOps Questions by Damon Salvatore
• 5,980 points
772 views

1 answer to this question.

0 votes

you can use python instead of yaml, you just have to follow the data structure.

Go through the these docs to get a better understanding.

general doc on renderers https://docs.saltstack.com/en/latest/ref/renderers/

pure python renederer: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.py.html#module-salt.renderers.py

PyObjects renderer: https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.pyobjects.html

PyDSL renderer:https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.pydsl.html

answered Jun 5, 2018 by ajs3033
• 7,300 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,890 points
2,856 views
0 votes
0 answers
0 votes
1 answer

Use vagrant to update $PATH of guest vm

Just try the below script: mvm.vm.provision :shell, :inline ...READ MORE

answered May 1, 2018 in Other DevOps Questions by shubham
• 7,340 points
1,204 views
0 votes
1 answer

salt error : “TypeError: coercing to Unicode: need string or buffer, bool found”

You can check the discussion regarding same ...READ MORE

answered Jun 17, 2018 in Other DevOps Questions by shubham
• 7,340 points
2,430 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,054 views
+2 votes
1 answer
+1 vote
2 answers

Unable to build TFS project because files not found

Please make a folder in solution Nd ...READ MORE

answered May 17, 2019 in Other DevOps Questions by Shashikesh Mishra
4,779 views
0 votes
1 answer

How to get results of SonarQube?

You can use sonarqube quality gates which ...READ MORE

answered Jun 8, 2018 in Other DevOps Questions by ajs3033
• 7,300 points
3,069 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP