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

postgresql: service script wrong if service_name changed from default

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: postgresql
    • Labels:
      None
    • Environment:

      3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      mod 'puppetlabs/postgresql', '5.11.0'

      When changing the service_name to avoid having version number appended:

      class { 'postgresql::globals':
        manage_package_repo => true,
        version => '9.3',
        service_name => "postgresql",
      } ->
      class

      { 'postgresql::server': }

      then the server cannot start due to a wrong include in the service script:

      .include /usr/lib/systemd/system/postgresql.service
      [Service]
      Environment=PGPORT=5432
      Environment=PGDATA=/var/lib/pgsql/9.3/data

      The include must be

      .include /usr/lib/systemd/system/postgresql-9.3.service

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bbb@navicon.dk Bjarke B. Blendstrup
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support