Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7412

Puppetlabs-postgresql : postgresql_conf fails when value is a Boolean

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: postgresql
    • Template:
      MODULES Bug Template
    • Team:
      Modules
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 5.6.0
      Puppet Version: 4.10.11
      OS Name/Version: Ubuntu 16.04 LTS

      If I use a boolean value for the ::postgresql::server::config_entry type, the puppet run will fail.
      eg.

      postgresql::server::config_entry { 'ssl':
        value => true,           
      }
      

      will fail with

      Notice: /Stage[main]/Profile_postgresql::Server/Postgresql::Server::Config_entry[ssl]/Postgresql_conf[ssl]/value: value changed 'off' to 'true'
      Error: /Stage[main]/Profile_postgresql::Server/Postgresql::Server::Config_entry[ssl]/Postgresql_conf[ssl]: Could not evaluate: undefined method `match' for true:TrueClass

      This issue is more or less the same as: https://tickets.puppetlabs.com/browse/MODULES-1319 but affects Boolean values instead of Numeric values.

      Desired Behavior:

      Puppet runs work when using boolean values in the config_entry type.

      Actual Behavior:

      Puppet fails with en error message when using boolean values in the config_entry type.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              nicolas.bigler Nicolas Bigler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support