From 6ecdfaca863c303abd69a916c4a1344dff2eb5ca Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 24 Jan 2019 10:55:15 -0500 Subject: [PATCH] Fleet Module - Add post install scripts --- salt/fleet/packs/hh/hh-post-login.sh | 12 ++++++++++++ salt/fleet/packs/{ => hh}/hhdefault.yml | 0 salt/fleet/{etc => packs/hh}/osquery.conf | 0 3 files changed, 12 insertions(+) create mode 100644 salt/fleet/packs/hh/hh-post-login.sh rename salt/fleet/packs/{ => hh}/hhdefault.yml (100%) rename salt/fleet/{etc => packs/hh}/osquery.conf (100%) diff --git a/salt/fleet/packs/hh/hh-post-login.sh b/salt/fleet/packs/hh/hh-post-login.sh new file mode 100644 index 000000000..8dbf036c4 --- /dev/null +++ b/salt/fleet/packs/hh/hh-post-login.sh @@ -0,0 +1,12 @@ +#!/bin/sh +echo "Applying Post Configuration for Osquery" +fleetctl apply -f /packs/hh/osquery.conf +fleetctl apply -f /packs/hh/hhdefault/yml +fleetctl apply -f /packs/palantir/Fleet/Endpoints/options.yaml +fleetctl apply -f /packs/palantir/Fleet/Endpoints/MacOS/osquery.yaml +fleetctl apply -f /packs/palantir/Fleet/Endpoints/Windows/osquery.yaml +for pack in /packs/palantir/Fleet/Endpoints/packs/*.yaml; + do fleetctl apply -f "$pack" +done +echo "" +echo "You can now exit the container by typing exit" diff --git a/salt/fleet/packs/hhdefault.yml b/salt/fleet/packs/hh/hhdefault.yml similarity index 100% rename from salt/fleet/packs/hhdefault.yml rename to salt/fleet/packs/hh/hhdefault.yml diff --git a/salt/fleet/etc/osquery.conf b/salt/fleet/packs/hh/osquery.conf similarity index 100% rename from salt/fleet/etc/osquery.conf rename to salt/fleet/packs/hh/osquery.conf