1. Data failed to compile:
  2. ----------
  3. Rendering SLS nginx failed, render error: Undefined jinja variable; line 74 in template
  4. ---
  5. [...]
  6. - require:
  7. - pkg: nginx
  8. /etc/nginx/sites-enabled/{{ sitename }}:
  9. file.symlink:
  10. - target: /etc/nginx/sites-available/{{ sitename }} <======================
  11. {% endfor %}

Why is the second sitename instance throwing the error?