Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service_status being set without honoring custom service_name #1378

Open
idl0r opened this issue Dec 12, 2022 · 1 comment
Open

service_status being set without honoring custom service_name #1378

idl0r opened this issue Dec 12, 2022 · 1 comment

Comments

@idl0r
Copy link

idl0r commented Dec 12, 2022

Describe the Bug

Hi,

we're using 8.2.1 right now. We have a custom service_name being set, in our case it's "postgresql-11".
That is fine so far (it seems) except for service_status.
manifests/params.pp doesn't honor a custom service_name so it's defining "postgresql" as default which is then used by service_status.

This results in having a service definition in
manifests/server/service.pp for "postgresql-11" (the custom one) but having a service status defined as e.g. "systemctl status postgresql". This then results into the service being treated as stopped / not running and Puppet trying to start postgresql-11 then (which is already running) on every Puppet run.

Expected Behavior

service_status or params.pp should honor custom settings

Steps to Reproduce

Broken e.g.:

  class { 'postgresql::server':
    package_name         => 'postgresql11-server',
    service_name         => 'postgresql-11',
    ...
  }

Working:

  class { 'postgresql::server':
    package_name         => 'postgresql11-server',
    service_name         => 'postgresql-11',
    service_status       => 'systemctl status postgresql-11', # puppetlabs-postgresql defaultet zu "postgresql"
    ...
  }

Environment

  • CentOS 7.9.2009
  • Puppet 7.21.0
  • puppetlabs-postgresql 8.2.1
@timmooney
Copy link

We're using puppetlabs-postgresql 9.2.0 and this issue is still present. It impacts the default OS package service name on RHEL 7, RHEL 8, and RHEL 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants