I’m searching for a way to rerun a sync rule after changing sync properties, but when there was no change on imported source data.
Director caches/hashes import source data and only allows to trigger a sync when there are new or changed source items, but seems to ignore changes in sync properties, ie. new or renamed custom vars.
I haven’t seen such a “forced” sync yet, might qualify for a feature request on GitHub. Maybe you can use a dummy object where you change e.g. the host notes and force a resync that way.
A sync will always have changes when the resulting object changes.
It is not directly related to the import, it will only use its latest data. Change logic is not related to the Import source changing, but the resulting objects properties
Director will “update” the target object with your sync properties. When the resulting object is not actually changed, it is not a modification, and therefor “in sync”.
Let’s say we have this import data - YAML for now.
Now the Wiki URL is not really updated in the resulting object, so no change for Director. Same will happen when the Wiki URL has been set manually and the import now has the correct property.
Could you show us some examples? Data, Sync, Objects?
But when changing sync properties (change sort order, add additional value), nothing happens
when triggering a new sync. I’ve also tried to add a new column to import source, but director only
reports changes within import source, but not within sync rule???
Environment:
Icinga2 r2.10.4-1
Icingaweb2 2.6.2
Director (master?, files from Nov. 2018)
OS: openSUSE Leap 15.0, apache 2.4, php 7.2