diff --git a/tests/images/azl-installer/installer-iso.yaml b/tests/images/azl-installer/installer-iso.yaml index a5f63a0a1..b0e58a5e4 100644 --- a/tests/images/azl-installer/installer-iso.yaml +++ b/tests/images/azl-installer/installer-iso.yaml @@ -72,6 +72,10 @@ os: - source: mos/scripts/installation.sh destination: /root/installer/installation.sh + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf iso: initramfsType: full-os diff --git a/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml b/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml index 88a8d7b97..eb083c83d 100644 --- a/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml +++ b/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml @@ -78,3 +78,9 @@ os: services: enable: - sshd + + additionalFiles: + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf diff --git a/tests/images/trident-container-installer/base/baseimg.yaml b/tests/images/trident-container-installer/base/baseimg.yaml index 1e1dfded5..357baf11e 100644 --- a/tests/images/trident-container-installer/base/baseimg.yaml +++ b/tests/images/trident-container-installer/base/baseimg.yaml @@ -57,6 +57,10 @@ os: - source: files/containerd-mmap-fix.cil destination: /usr/share/selinux/packages/containerd-mmap-fix.cil + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - trident-container diff --git a/tests/images/trident-container-testimage/base/baseimg.yaml b/tests/images/trident-container-testimage/base/baseimg.yaml index 53f3eff71..ec3266fd6 100644 --- a/tests/images/trident-container-testimage/base/baseimg.yaml +++ b/tests/images/trident-container-testimage/base/baseimg.yaml @@ -76,6 +76,10 @@ os: - source: files/containerd-mmap-fix.cil destination: /usr/share/selinux/packages/containerd-mmap-fix.cil + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - trident-container diff --git a/tests/images/trident-functest/base/baseimg.yaml b/tests/images/trident-functest/base/baseimg.yaml index 874463b5e..328516771 100644 --- a/tests/images/trident-functest/base/baseimg.yaml +++ b/tests/images/trident-functest/base/baseimg.yaml @@ -85,3 +85,9 @@ os: services: enable: - sshd + + additionalFiles: + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf diff --git a/tests/images/trident-installer/base/baseimg-direct-streaming.yaml b/tests/images/trident-installer/base/baseimg-direct-streaming.yaml index 3ace14fbd..5f9cce769 100644 --- a/tests/images/trident-installer/base/baseimg-direct-streaming.yaml +++ b/tests/images/trident-installer/base/baseimg-direct-streaming.yaml @@ -87,6 +87,10 @@ os: - source: ../../../../tools/cmd/rcp-agent/rcp-agent.service destination: /usr/lib/systemd/system/rcp-agent.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf selinux: mode: enforcing diff --git a/tests/images/trident-installer/base/baseimg-split.yaml b/tests/images/trident-installer/base/baseimg-split.yaml index 6c5867d8a..415e6dcca 100644 --- a/tests/images/trident-installer/base/baseimg-split.yaml +++ b/tests/images/trident-installer/base/baseimg-split.yaml @@ -71,6 +71,10 @@ os: - source: files/trident-split-install.service destination: /usr/lib/systemd/system/trident-install.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: post-install.sh diff --git a/tests/images/trident-installer/base/baseimg.yaml b/tests/images/trident-installer/base/baseimg.yaml index 7f6bf691b..446d65162 100644 --- a/tests/images/trident-installer/base/baseimg.yaml +++ b/tests/images/trident-installer/base/baseimg.yaml @@ -76,6 +76,10 @@ os: - source: files/trident-install.service destination: /usr/lib/systemd/system/trident-install.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf selinux: mode: enforcing diff --git a/tests/images/trident-mos/containerhost-iso.yaml b/tests/images/trident-mos/containerhost-iso.yaml index 586bb5ac9..15b21fa69 100644 --- a/tests/images/trident-mos/containerhost-iso.yaml +++ b/tests/images/trident-mos/containerhost-iso.yaml @@ -51,6 +51,10 @@ os: - source: files/download-trident-container.service destination: /usr/lib/systemd/system/download-trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - download-trident-container diff --git a/tests/images/trident-mos/iso.yaml b/tests/images/trident-mos/iso.yaml index 00b235a02..6e754a799 100644 --- a/tests/images/trident-mos/iso.yaml +++ b/tests/images/trident-mos/iso.yaml @@ -94,6 +94,10 @@ os: - source: ../../../tools/cmd/rcp-agent/rcp-agent.service destination: /usr/lib/systemd/system/rcp-agent.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - rcp-agent diff --git a/tests/images/trident-testimage/base/baseimg.yaml b/tests/images/trident-testimage/base/baseimg.yaml index 80951ff4d..416ca2c3c 100644 --- a/tests/images/trident-testimage/base/baseimg.yaml +++ b/tests/images/trident-testimage/base/baseimg.yaml @@ -78,6 +78,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: post-install.sh diff --git a/tests/images/trident-verity-testimage/base/baseimg-container.yaml b/tests/images/trident-verity-testimage/base/baseimg-container.yaml index 21dd824cb..e7628db4f 100644 --- a/tests/images/trident-verity-testimage/base/baseimg-container.yaml +++ b/tests/images/trident-verity-testimage/base/baseimg-container.yaml @@ -134,6 +134,10 @@ os: - source: files/trident-container.service destination: /usr/lib/systemd/system/trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-verity-testimage/base/baseimg.yaml b/tests/images/trident-verity-testimage/base/baseimg.yaml index 1477615dc..81616eb74 100644 --- a/tests/images/trident-verity-testimage/base/baseimg.yaml +++ b/tests/images/trident-verity-testimage/base/baseimg.yaml @@ -132,6 +132,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-verity-testimage/usr/container.yaml b/tests/images/trident-verity-testimage/usr/container.yaml index 855cd0f10..f6aec6134 100644 --- a/tests/images/trident-verity-testimage/usr/container.yaml +++ b/tests/images/trident-verity-testimage/usr/container.yaml @@ -115,6 +115,10 @@ os: - source: files/trident-container.service destination: /usr/lib/systemd/system/trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf output: # Specifies config for output dir containining generated artifacts. This is # required for later running inject-files command, so that the final image diff --git a/tests/images/trident-verity-testimage/usr/host.yaml b/tests/images/trident-verity-testimage/usr/host.yaml index 476178d80..fe7ec196b 100644 --- a/tests/images/trident-verity-testimage/usr/host.yaml +++ b/tests/images/trident-verity-testimage/usr/host.yaml @@ -121,6 +121,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf output: # Specifies config for output dir containining generated artifacts. This is # required for later running inject-files command, so that the final image diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml index 7da14975f..f732a5ba4 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml @@ -145,6 +145,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml index 11715cfc9..387126423 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml @@ -143,6 +143,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub.yaml index 0286a9a8a..96013eec0 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub.yaml @@ -84,6 +84,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf users: - name: testuser sshPublicKeyPaths: diff --git a/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml index 0ec362b70..ae508fd01 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml @@ -146,6 +146,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf overlays: - mountPoint: /etc lowerDirs: [/etc] diff --git a/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml index ae5208a2b..8c55219c3 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml @@ -145,6 +145,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - kdump diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml index 6bde75530..e7b233808 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml @@ -136,6 +136,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml index db03d2c61..a2f29e892 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml @@ -129,6 +129,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub.yaml index 02b2cd072..fe74ac05e 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub.yaml @@ -73,6 +73,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: scripts/post-install.sh