Fixes #7810 - Remove docker and puppet content from a repository

Better to use a function call here than assignment in the template.