From 3dee401c36aec1f5cdb72586fd3e3d804f41c054 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 24 Jan 2019 14:33:41 -0500 Subject: [PATCH] Fleet Module - Try and fix LiveQuery --- .../packs/palantir/Fleet/Endpoints/options.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/salt/fleet/packs/palantir/Fleet/Endpoints/options.yaml b/salt/fleet/packs/palantir/Fleet/Endpoints/options.yaml index f2bb85d8c..6fd1c9480 100644 --- a/salt/fleet/packs/palantir/Fleet/Endpoints/options.yaml +++ b/salt/fleet/packs/palantir/Fleet/Endpoints/options.yaml @@ -3,9 +3,17 @@ kind: options spec: config: decorators: - load: - - SELECT uuid AS host_uuid FROM system_info; + always: - SELECT hostname AS hostname FROM system_info; + - SELECT codename FROM os_version; + - SELECT uuid AS LiveQuery FROM system_info; + - SELECT address AS EndpointIP1 FROM interface_addresses where address not + like '%:%' and address not like '127%' and address not like '169%' order by + interface desc limit 1; + - SELECT address AS EndpointIP2 FROM interface_addresses where address not + like '%:%' and address not like '127%' and address not like '169%' order by + interface asc limit 1; + - SELECT hardware_serial FROM system_info; file_paths: binaries: - /usr/bin/%%