[ClusterLabs] Antw: Re: Q: Reusing date specs in crm shell

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon Sep 17 05:51:01 UTC 2018


>>> Kristoffer Grönlund <kgronlund at suse.de> schrieb am 13.09.2018 um 15:25 in
Nachricht <1536845127.31371.2.camel at suse.de>:
> On Tue, 2018‑09‑11 at 13:52 +0200,  Ulrich Windl  wrote:
>> Hi!
>> 
>> I have a set of resources with almost identical rules, one part being
>> a data spec. Currently I'm using two different date specs in those
>> rules. However I repeated the date spec in every rule. Foreseeing
>> that I might change those one day, I wonder whether it's possible in
>> crm shell to define a date spec once (outside of any resource for
>> symmetry) and reference that data spec inside a rule. Ok, time for an
>> example:
>> 
>>         meta 1: ...default settings... \
>>         meta 2: rule 0: date spec hours=7‑18 weekdays=1‑5 ...override
>> settings outside prime time...
>> 
>> In the crm manual page the reference examples use dummy primitives.
>> 
> 
> I wonder if this could be done with id‑based references, but it's not
> something I've actually experimented with. Not a great answer, I
> know...

Indeed ;-) I was wondering where to put the originals: There seems to be
rsc_defaults, but it seems I can't put arbitrary things there.

Regards,
Ulrich

> 
>> Regards,
>> Ulrich
>> 
>> 
>> _______________________________________________
>> Users mailing list: Users at clusterlabs.org 
>> https://lists.clusterlabs.org/mailman/listinfo/users 
>> 
>> Project Home: http://www.clusterlabs.org 
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.
>> pdf
>> Bugs: http://bugs.clusterlabs.org 
>> 
> ‑‑ 
> 
> Cheers,
> Kristoffer
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> https://lists.clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 





More information about the Users mailing list