salt: Jinja import cannot be referenced by any valid path from managed file deployed with salt-ssh

Given the following managed file:

/tmp:
  file.recurse:
    - source: salt://path/to/file
    - template: jinja

Containing any of the following import variations:

{% from 'macros/string.j2' import myFunction %} {% from '/macros/string.j2' import myFunction %} {% from 'salt://macros/string.j2' import myFunction %}

Running the following command will always throw TemplateNotFound:

salt-ssh \* state.highstate

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 2
  • Comments: 27 (14 by maintainers)

Most upvoted comments

This issue (extra_filerefs ignored on gitfs) still exists on 2016.11, @basepi can this be slotted for Nitrogen? How hard do you estimate the fix?