Troubleshoot#
jinja2.exceptions.TemplateNotFound#
Do not use {% include %}
. Instead of including shared content in a service-specific file, rewrite the configuration so that the shared content is the template file, and the service-specific content is Pillar data.
Jinja caching issues#
Imported files are sometimes cached. To check whether this is the case, delete the imported file (e.g. lib.sls
) and run the Salt function. If there is no change, the file is cached. To clear the cache:
rm -rf /var/tmp/.*_salt