title: upgrade all packages in a minion using state
body: <p>How can I write a Salt state that will upgrade all packages installed on a system (for lab) for both centos and ubuntu?</p>
  
  <p>I have an <code>upgrades.sls</code> that has the following:</p>
  
  <pre><code>upgrades:
    pkg.upgrade:
      - name: '*'
  </code></pre>
  
  <p>But it returns a </p>
  
  <blockquote>
    <p>State 'pkg.upgrade' was not found in SLS 'dfars.patching' Reason:
    'pkg.upgrade' is not available.</p>
  </blockquote>
  
  <p>Do I have to specify that for centos, then use <code>yum.pkg</code> and for Ubuntu to use <code>apt</code>? </p>