title: SaltStack: Ordering of States
body: <p>My sls file looks like this:</p>
  
  <h1>init.sls</h1>
  
  <pre><code>include:
    - .packages
    - .user_and_group
  </code></pre>
  
  <h1>packages.sls</h1>
  
  <pre><code>monitoring_packages:
    pkg.installed:
      - pkgs:
        - git
  </code></pre>
  
  <h1>user_and_group.sls</h1>
  
  <pre><code>monitoring__group:
    group.present:
      - name: myuser
  </code></pre>
  
  <p>For some strange reason the state <code>monitoring__group</code> from the include "user_and_group" get executed before installing <code>git</code>.</p>
  
  <h1>Question</h1>
  
  <p>How can I tell salt to install the packages first?</p>