File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,13 @@ wait_for_container_healthy() {
14
14
fi
15
15
done
16
16
}
17
+
18
+ sync_inventory () {
19
+ # avoid overlaps with run_on_change
20
+ sleep 10
21
+ if [[ $( semver $MANAGER_VERSION 8.0.0) -ge 0 || $MANAGER_VERSION == " latest" ]]; then
22
+ osism sync inventory
23
+ else
24
+ osism reconciler sync
25
+ fi
26
+ }
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ if [[ $(semver $MANAGER_VERSION 7.0.0) -ge 0 || $MANAGER_VERSION == "latest" ]];
28
28
cp /tmp/$( basename $node ) -ceph-lvm-configuration.yml /opt/configuration/inventory/host_vars/$( basename $node ) /ceph-lvm-configuration.yml
29
29
fi
30
30
done
31
- osism reconciler sync
31
+
32
+ # sync the inventory
33
+ sync_inventory
34
+
32
35
osism apply ceph-create-lvm-devices
33
36
osism apply facts
34
37
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ sh -c '/opt/configuration/scripts/sync-configuration-repository.sh'
29
29
osism update manager
30
30
docker compose --project-directory /opt/manager ps
31
31
32
- osism reconciler sync
32
+ # refresh facts & sync the inventory
33
+ sync_inventory
33
34
osism apply facts
34
35
35
36
# upgrade services
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ if [[ "$IS_ZUUL" == "true" || "$ARA" == "false" ]]; then
54
54
sh -c ' /opt/configuration/scripts/disable-ara.sh'
55
55
fi
56
56
57
- # refresh facts & reconcile the inventory
58
- osism reconciler sync
57
+ # refresh facts & sync the inventory
58
+ sync_inventory
59
59
osism apply facts
60
60
61
61
# upgrade services
You can’t perform that action at this time.
0 commit comments