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

puppetlabs-postgresql : setting encoding in postgresql::globals leads to dependency cycle

    XMLWordPrintable

    Details

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

      Description

      Module Version: 7.3.0
      Puppet Version: 7.9.0
      OS Name/Version: Ubuntu 20.04 LTS

      Desired Behavior:

      Setting encoding on postgresql::globals is supported

      Actual Behavior:

      Starting with module version 7.3.0 (works fine on 7.2.0), setting the default encoding in postgresql::globals leads to a dependency cycle:

      class { '::postgresql::globals':
        encoding            => 'UTF-8',
        manage_package_repo => false
      }
       
      class { 'postgresql::server':
      }
       
      postgresql::server::db { 'foobar':
        user     => 'foobar',
        password => postgresql::postgresql_password('foobar', 'foobar'),
      }
      

      Error: Found 1 dependency cycle:
      (Anchor[postgresql::server::service::begin] => Postgresql_psql[Set template1 encoding to UTF-8] => Class[Postgresql::Server::Initdb] => Postgresql_conf[port] => Class[Postgresql::Server::Service] => Anchor[postgresql::server::service::begin])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
      Error: Failed to apply catalog: One or more resource dependency cycles detected in graph
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrekeller André Keller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support