title: Salt and jinja variables
body: <p>I want use variable as parameter in my state:</p>
  
  <p>I have value in map.jinja:</p>
  
  <pre><code>'package_9.6': '3.7.5-1',
  </code></pre>
  
  <p>I declared variable in my state:</p>
  
  <pre><code>{% set package_version = '9.6' %}
  </code></pre>
  
  <p>Then I added string to it:</p>
  
  <pre><code>{% set something = "my_package.package_" ~ package_version %}
  </code></pre>
  
  <p>And want to use all this in my state</p>
  
  <pre><code>{% from "somewhere/map.jinja" import my_package with context %}
        pkg.installed:
          - pkgs:
            - my_package: {{ something }}
  </code></pre>
  
  <p>In perfect universe I would like to resolve value of my variable to value from map.jinja (3.7.5-1). But I am getting <strong>my_package.package_9.6</strong> string.</p>
  
  <p>Maybe it is totally wrong way of meeting my needs, but after some experiments I got to this option.</p>