How to refresh/restart/reload a resource?
Opened this issue · 1 comments
hammondr commented
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 commented
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. :)