Best Practices for Deploying Large Files with Tanium Deploy
A frequent question we get from our customers using Deploy is: how do you recommend deploying large files? There are a couple of potential answers to this question, so below are some best practices and pros and cons to the approaches.
Tanium Deploy uses the Tanium Platform to distribute files. Because Tanium is bandwidth sensitive and allows the administrator the ability to throttle package data, the time it takes to download to endpoints can vary greatly.
The Two-Package Approach
When distributing larger files, most of the time it is best to create 2 packages.
Package 1 is to both stage install files and then remove them from the endpoint. Package 2 is to execute the setup process (you can also remove install files with this package).
Create and deploy Package 1:
-
Copy the install files to the endpoint in a location other than the Tanium Client folder (like C:\Install). These files will be deleted after successful execution, so do not rely on them staying there.
-
Note that you can use the "Copy File/Folder" feature and the "Extract File/Folder" feature in Deploy 1.2.1 (and later versions), to achieve this goal.
-
(Removal Option 1) Create a deployment to remove the install files when the Package 2 install has completed successfully.
Package 2 comes next:
-
While dependent on Package 1 being deployed, it will not have the overhead of files that need to be downloaded. This allows for a more predictable execution time for the package.
-
(Removal Option 2) You can use Package 2 to clean up the residuals of the installation once completed. You can do this either by script or by using Deploy 1.2.1 (and later versions), which offers a handy "Delete File/Folder" step.
Using a Single Package
If you do not want to create two packages, you can still perform your deployment cycle with a single package. The major drawback is that for scheduling, you are at the mercy of the download stage, as the package cannot execute until the files are transferred. Consider a scenario where you have multiple sites with different throttling settings: it would be very difficult to pin down a consistent start time for all of your deployments to execute at once or at a specific time. If timing is not a concern, and there is no problem with the package executing whenever it arrives, then a single package solution is for you.