title: All Salt Stack functions able to be set as variables?
body: <p>I erroneously thought that if you could run a function on the command line in SaltStack, that you could set that output as a variable. For example, consider the following which outputs the timezone of all minions:</p>
  
  <p><code>salt '*' timezone.get_zone</code></p>
  
  <p>It outputs a single string like <code>Etc/UTC</code> as the timezone. I am writing a function to run some cron jobs based on the timezone of the local server. However, in a jinja template, when I set:</p>
  
  <pre><code>...
  {% set timezone = salt['timezone.get_zone'] %}
  
  {% if timezone == 'America/Los_Angeles' %}
  0 23 * * * root somecommand
  {% else %}
  # TIMEZONE NOT FOUND
  {% endif %}
  ....
  </code></pre>
  
  <p>I always get the <code># TIMEZONE NOT FOUND</code> output for that template. If I try to pass the timezone via <code>context</code> inside of the SLS file for the formula, I get the following after rendering:</p>
  
  <p><code>&lt;function get_zone at 0x7fb48a7c9f50&gt;</code></p>
  
  <p>Any suggestions?</p>