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

rework how module manages the service #461

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rstuart-indue
Copy link

The module manages the service for some OSs only (and when not PE). This change makes this more consistent to manage the service on all platforms, regardless of PE.

In particular, windows was a case where the module was excluded from managing the service. We want the puppet agent started again even when doing a manual run so that it is restored to service. But there is also the option added to disable this behavior.

- module manages the service for some OSs only (and when not PE)
- make this more consistent to manage the service on all platforms
@puppetcla
Copy link

Waiting for CLA signature by @rstuart-indue

@rstuart-indue - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

@rstuart-indue rstuart-indue requested review from gimmyxd, mcdonaldseanp and tkishel and removed request for gimmyxd and mcdonaldseanp January 19, 2020 23:13
@puppetcla
Copy link

CLA signed by all contributors.

@mcdonaldseanp
Copy link
Contributor

The windows service is managed differently (and not with puppet) during the upgrade, because the services need to be shut off during upgrade and the upgrade cannot be performed by puppet itself. install_puppet.ps1 includes code that should restore service operation after the upgrade: https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/files/install_puppet.ps1#L358

@gimmyxd gimmyxd requested a review from a team January 23, 2020 14:55
@rstuart-indue
Copy link
Author

rstuart-indue commented Feb 3, 2020

It sounds like you are describing the restart of the application so that it doesn't interfere with installation, but this is different to managing the service. It sounds like there might be two different purposes being talked about here:

  • starting the agent after installation or upgrade
  • ensuring the service is running all the time

It seems to me that the first is what you are describing as the intent of the code in this module, but the second is what is being done for a large number of systems. If managing the service is not wanted, then I would suggest removing the service resources completely and triggering starts of the agent with whatever tools are necessary but avoiding managing the service. Otherwise, there is going to be conflicts if people choose to manage the service and also use this module on non-PE systems and non-windows systems (eg RHEL).

@ciprianbadescu ciprianbadescu changed the base branch from master to main September 15, 2020 10:54
@CLAassistant
Copy link

CLAassistant commented Sep 1, 2021

CLA assistant check
All committers have signed the CLA.

@wilrodriguez
Copy link

Another thing to mention here is that the module does not attempt to manage the service on PE at all, even though PE does not manage the puppet service. So, that probably needs to be changed too.

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

Successfully merging this pull request may close these issues.

5 participants