Multiple key in label vs host tag

marbaa
Thu, 27 Oct 2022 15:51:27 +0000
General

Hi,

I came to the situation that labels and hostags are two same things with different names. I use both of them, to mark and separate things.

I have 10 satellites in corresponding wato/folder. Each folder have label satellite:<city name>. Example:

satellite:kosice
satellite:budapest
satellite:denver
satellite:vegas
...

Now, I want to make whatever rule which will apply for two satellites only, i.e. budapest and denver.
I can’t do it with hosttags, because under conditions one hosttag can be used only once.
And I can’t do it with labels, becase there occurs message Only one value per KEY can be used at a time.satellite:xxx is already used so in this case labels and hosttags are usable only once.
Workaround is to make same rules in every needed wato folder. I thought this will be the perfect case for labels, but it isn’t. Or maybe I’m missing something obvious.

7 posts - 5 participants