Puppet style syntax for python

Does anyone know of good ways to make puppet-like pp files for python. Almost like configuration files that other configuration files can inherit, and also have limited logic in them, for example, if there are operators and variables?

Thanks!

+4
source share
3 answers

Kokki is an interesting project that is trying to become a chef / puppet, but for Python. It looks a little immature for use in production, but if you are looking for a Python-based configuration management system and don't want to use something that has worked more well (and heavy) like Bcfg2, I would go with Kokki.

+5
source

Consider using Python with internal rules that restrict what can be displayed in a configuration file.

The advantages are that no one needs to learn another language, it is really very cheap to implement, and you do not need to worry about maintaining the configuration parser. The disadvantage is that it is not a specially designed language for your specific use case, and that if you do not strictly limit which syntax can be used, you will get complexity in your configuration files.

+3
source

This is a pretty good list of open source configuration management tools. Good Python implementations include Synctool, Salt, Pacha, and Bcfg2.

+1
source

Source: https://habr.com/ru/post/1344416/


All Articles