Skip to content

Commit 6a85658

Browse files
authored
Merge branch 'main' into 2026-upgrade
2 parents c46933d + ee75210 commit 6a85658

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/user_guide/advanced_functionality/custom_config.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,23 @@ commands can be used to add/delete a custom config file to the edgenode. The cus
106106
107107
This command links the specified custom config to the host, ensuring that the cloud-init file is applied during the provisioning process.
108108
Refer :doc:`orch-cli documentation </user_guide/set_up_edge_infra/orch_cli/orch_cli_guide>` for more options to manage host.
109+
110+
#. If your cloud-init file triggers package upgrades on the machine, this may result in upgrading the agent version. To prevent unintended agent upgrades, add the
111+
following commands to your cloud-init file:
112+
113+
.. code-block:: yaml
114+
115+
#cloud-config
116+
117+
merge_how:
118+
- name: list
119+
settings: [ append ]
120+
- name: dict
121+
settings: [ no_replace, recurse_list ]
122+
123+
runcmd:
124+
- apt-mark hold platform-observability-agent platform-telemetry-agent hardware-discovery-agent in-band-manageability platform-update-agent node-agent cluster-agent platform-manageability-agent
125+
- apt upgrade # Or any other package management commands that may trigger upgrades
126+
- apt-mark unhold platform-observability-agent platform-telemetry-agent hardware-discovery-agent in-band-manageability platform-update-agent node-agent cluster-agent platform-manageability-agent
127+
128+
This approach holds the agent packages before executing upgrades, then releases them afterward, ensuring agents are not inadvertently updated during the provisioning process.

0 commit comments

Comments
 (0)