title: Install specific version of postgres using saltstack
body: <p>I'm wanting a really basic install of postgres, and the <a href="https://github.com/saltstack-formulas/postgres-formula/tree/master/postgres" rel="nofollow">postgres-formula/postgres</a> is just too crazy.  I just want to install postgres version 9.5.1 on a single minion.</p>
  
  <p>Here's something I've tried, that I know doesn't work.</p>
  
  <p><strong>/srv/salt/top.sls</strong></p>
  
  <pre><code>base:
    '*':
      - postgresql
  </code></pre>
  
  <p><strong>/srv/salt/postgresql/init.sls</strong></p>
  
  <pre><code>postgresql:
    pkg.installed:
        - version: 9.5.1
  </code></pre>
  
  <p>According to the documentation <a href="https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html" rel="nofollow">here</a>, this is the correct format.  I thought maybe I should have the 9.5.3 in a different format, but I can't find where to figure that out.  </p>
  
  <hr>
  
  <p><strong>Update 1</strong></p>
  
  <p>I'm using ubuntu 14.04 on the minion, and the master.</p>
  
  <p>The output of <code>apt-cache policy postgresql</code> is</p>
  
  <pre><code>postgresql:
    Installed: (none)
    Candidate: 9.3+154ubuntu1
    Version table:
       9.3+154ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
       9.3+154 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
  </code></pre>