title: Explain using mine.get inside a salt-state
body: <p>Can someone give me an idiots explanation of how the following works:</p>
  
  <pre><code>{% for server, addrs in salt['mine.get']('roles:web', 'network.ip_addrs', expr_form='grain') | dictsort() %}
  server {{ server }} {{ addrs[0] }}:80 check
  {% endfor %}
  </code></pre>
  
  <p>The pillar file looks like:</p>
  
  <pre><code>mine_functions:
    network.ip_addrs: [eth0]
  </code></pre>
  
  <p>What does salt assign to the first two values, <code>server</code> and <code>addrs</code>?
  How would you use multiple mine options in the above? i.e. if your pillar file had an extra mine function like so:</p>
  
  <pre><code>mine_functions:
       network.ip_addrs: [eth0]
        role:
          - mine_function: grains.get
          - role
  </code></pre>
  
  <p>How could you then access the role function in the first code snippet?</p>
  
  <p>Hopefully this makes sense</p>