[Pacemaker] ocf resource agents - pre and post scripts

Michael Schwartzkopff ms at sys4.de
Mon Dec 9 14:38:50 UTC 2013


Am Montag, 9. Dezember 2013, 15:24:06 schrieb Vladimir:
> Hello everyone,
> 
> Is there a built-in mechanizm in pacemaker to trigger a pre or post
> script or do the ocf resource agents bring something like that?
> 
> I could also create a kind of dummy resource after a primitive
> resource. But I asked my self if there is another/better way.
> 
> Thanks.

No hooks.
But ocf agents are bash. You can insert your own code in the start() and 
stop() functions.

Just create a new directory under /usr/lib/ocf/resource.d and copy the 
original script into that dir. Than use the ocf agent from your new provider 
(=dir name).


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131209/3d14b242/attachment-0004.sig>


More information about the Pacemaker mailing list