From 476a369924dc55438d90add9da474e926cc76cdb Mon Sep 17 00:00:00 2001 From: Allen Houchins <32207388+allenhouchins@users.noreply.github.com> Date: Thu, 15 May 2025 14:09:35 -0500 Subject: [PATCH] Updated target platforms on labels (#29167) - Added `platform` targets for labels so labels weren't being applied to out of scope devices unintentionally --- it-and-security/lib/all/labels/arm-based-windows-hosts.yml | 1 + it-and-security/lib/all/labels/debian-based-linux-hosts.yml | 1 + it-and-security/lib/all/labels/macs-with-1password-installed.yml | 1 + it-and-security/lib/all/labels/rpm-based-linux-hosts.yml | 1 + it-and-security/lib/all/labels/santa-test-devices.yml | 1 + it-and-security/lib/all/labels/x86-based-windows-hosts.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/it-and-security/lib/all/labels/arm-based-windows-hosts.yml b/it-and-security/lib/all/labels/arm-based-windows-hosts.yml index 59941b45a7..808a5c24ac 100644 --- a/it-and-security/lib/all/labels/arm-based-windows-hosts.yml +++ b/it-and-security/lib/all/labels/arm-based-windows-hosts.yml @@ -2,3 +2,4 @@ description: Windows hosts on ARM architecture query: SELECT 1 FROM os_version WHERE arch LIKE 'ARM%'; label_membership_type: dynamic + platform: windows diff --git a/it-and-security/lib/all/labels/debian-based-linux-hosts.yml b/it-and-security/lib/all/labels/debian-based-linux-hosts.yml index c134c42080..d1a3463254 100644 --- a/it-and-security/lib/all/labels/debian-based-linux-hosts.yml +++ b/it-and-security/lib/all/labels/debian-based-linux-hosts.yml @@ -2,3 +2,4 @@ description: Linux hosts running on Debian-based operating systems query: SELECT 1 FROM os_version WHERE platform_like = 'debian'; label_membership_type: dynamic + platform: linux diff --git a/it-and-security/lib/all/labels/macs-with-1password-installed.yml b/it-and-security/lib/all/labels/macs-with-1password-installed.yml index f621a888df..b94833dd7a 100644 --- a/it-and-security/lib/all/labels/macs-with-1password-installed.yml +++ b/it-and-security/lib/all/labels/macs-with-1password-installed.yml @@ -2,3 +2,4 @@ description: Macs with 1Paswsword installed query: SELECT 1 FROM apps WHERE bundle_identifier = 'com.1password.1password'; label_membership_type: dynamic + platform: darwin diff --git a/it-and-security/lib/all/labels/rpm-based-linux-hosts.yml b/it-and-security/lib/all/labels/rpm-based-linux-hosts.yml index 26369c4533..49c6f0f73c 100644 --- a/it-and-security/lib/all/labels/rpm-based-linux-hosts.yml +++ b/it-and-security/lib/all/labels/rpm-based-linux-hosts.yml @@ -2,3 +2,4 @@ description: Linux hosts running on RPM-based operating systems query: SELECT 1 FROM os_version WHERE platform_like = 'rhel'; label_membership_type: dynamic + platform: linux diff --git a/it-and-security/lib/all/labels/santa-test-devices.yml b/it-and-security/lib/all/labels/santa-test-devices.yml index eff537dd2d..b87359678a 100644 --- a/it-and-security/lib/all/labels/santa-test-devices.yml +++ b/it-and-security/lib/all/labels/santa-test-devices.yml @@ -1,6 +1,7 @@ - name: Santa test devices description: Macs testing santa label_membership_type: manual + platform: darwin hosts: - "allens-macbook-pro.local" - "harrisons-macbook-pro.local" diff --git a/it-and-security/lib/all/labels/x86-based-windows-hosts.yml b/it-and-security/lib/all/labels/x86-based-windows-hosts.yml index 8a67aabe95..33a59945f1 100644 --- a/it-and-security/lib/all/labels/x86-based-windows-hosts.yml +++ b/it-and-security/lib/all/labels/x86-based-windows-hosts.yml @@ -2,3 +2,4 @@ description: Windows hosts on x86 architecture query: SELECT * FROM os_version WHERE arch NOT LIKE 'ARM%'; label_membership_type: dynamic + platform: windows