[Pkg-puppet-devel] Bug#866042: puppet-module-puppetlabs-postgresql: puppet apply fails due to missing version

Paulo Almeida paulo.david.almeida at gmail.com
Mon Jun 26 22:16:32 UTC 2017


Package: puppet-module-puppetlabs-postgresql
Version: 4.8.0-1
Severity: important

Dear Maintainer,


   * What led up to the situation?

     I tried to apply a manifest that uses functions from the puppet-module-puppetlabs-postgresql package.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     I ran the command 'puppet apply <manifest>'.

   * What was the outcome of this action?

     I got the following error:

     Error: Evaluation Error: Error while evaluating a Function Call, No preferred version defined or automatically detected. at /usr/share/puppet/modules/postgresql/manifests/globals.pp:126:5 on node stretch 

   * What outcome did you expect instead?

     I expected the manifest to be correctly applied

   
   The fix should be very simple. I edited the file:

     /usr/share/puppet/modules.available/puppetlabs-postgresql/manifests/globals.pp

   and on line 90 I added the following:

     /^(stretch|9\.)/ => '9.6',

   Afterwards I reran puppet apply and it worked. 

   In fact, I just checked and this is already included on the puppetlabs repository:

    https://github.com/puppetlabs/puppetlabs-postgresql/blob/master/manifests/globals.pp#L87

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages puppet-module-puppetlabs-postgresql depends on:
ii  puppet                           4.8.2-5
ii  puppet-common                    4.8.2-5
ii  puppet-module-puppetlabs-apt     2.3.0-1
ii  puppet-module-puppetlabs-concat  2.2.0-1
ii  puppet-module-puppetlabs-stdlib  4.14.0-1

puppet-module-puppetlabs-postgresql recommends no packages.

Versions of packages puppet-module-puppetlabs-postgresql suggests:
ii  postgresql-client-common  181

-- no debconf information



More information about the Pkg-puppet-devel mailing list