[ClusterLabs] Q: Reusing date specs in crm shell

Kristoffer Grönlund kgronlund at suse.de
Thu Sep 13 09:25:27 EDT 2018


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...

> 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




More information about the Users mailing list