I believe I’ve already talked to some of you about this, for those who don’t know: We have open sourced the foreman_git_templates plugin that allows you to store the provisioning templates of Hosts in a git repo. This has the advantage that multiple engineers can work on different branches of the templates, you can set up ci and there are no conflicts when different people change the same files.
The plugin does not clone the git repo but expects a tar archive with all files packaged. Both Gitlab and Github offer this functionality. This uses the
TemplateSource concept that was introduced with Foreman 1.20 and was a major driver while refactoring the templating engine.
The code lives on our Github:
If anyone is interested in using this, PRs for rpm packages are already opened and waiting for review. Any feedback is very welcome.