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

How to refresh/restart/reload a resource? #510

Open
hammondr opened this issue Jun 11, 2021 · 1 comment
Open

How to refresh/restart/reload a resource? #510

hammondr opened this issue Jun 11, 2021 · 1 comment
Assignees
Labels

Comments

@hammondr
Copy link

hammondr commented Jun 11, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7
  • Distribution: CentOS
  • Module version: lastest/master

How to reproduce (e.g Puppet code you use)

We use this module to create an nginx cluster. We love the module. Thanks for the hard work!

Without puppet, I can run pcs to refresh (reload) a Clone Set like this:

$ pcs status
Cluster name: TESTING-ZONE-W1A
Stack: corosync
Current DC: foo1.net (version 1.1.23-1.el7_9.1-9acf116022) - partition with quorum
Last updated: Fri Jun 11 22:13:14 2021
Last change: Thu Jun 10 17:35:21 2021 by hacluster via crmd on foo1.net

1 node configured
4 resource instances configured

Online: [ foo1 ]

Full list of resources:

 Clone Set: reverse_proxy [nginx_service]
     Started: [ foo1 ]

Failed Resource Actions:
* nginx_service_monitor_120000 on foo1.net 'not running' (7): call=8, status=complete, exitreason='',
    last-rc-change='Fri Jun 11 21:33:19 2021', queued=0ms, exec=0ms

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled

$ pcs resource refresh nginx_service

Is there a way to trigger pcs to refresh a resource, e.g. restart/reload a webserver, using this module?

I am deploying some nginx config files with puppet and I would like puppet to trigger an nginx reload or restart via pcs/corosync when those config files are updated.

@towo
Copy link
Member

towo commented Dec 28, 2021

I've looked into the code and so far, the only thing that's refreshable is a cs_commit; which isn't what you want (and you've probably implemented differently now, anyway…).

I can bump this to be a feature request, just let me now. :)

@towo towo self-assigned this Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants