I've created the attached Lua script to configure package syncing throughout the environment. This script (if no parameters are passed) will run on the primary hub's nas and use the automated_deployment_engine that resides there to set up sync rules for all packages (function set_sync_rules). Then it will find all slave ades running in the environment and set their master properly. You can set this script to run as often as you like to ensure package forwarding is configured properly throughout your environment.
---------------------------------------------------------------------------------------------------- script : ade-config.lua-- author : Dan Gill-- September 2018-- version: 1.1-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- desc : The intention of this script is to set the ade configs throughout the environment. -- slaves that are not present on master. (The ade probe automatically replicates packages from the-- This script should run from the primary hub's nas. The folder "script_logs" *MUST* be manually-- created under the nas directory prior to running this script.--------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- Version | Details----------------------------------------------------------------------------------------------------- 1.0 | Initial Version-- 1.1 | 9/20/2018 - Replace dofile with require and added package.path update; this makes-- passing the path to the includes files simpler. Swapped out file.write and print-- statements with output function from logging_functions.---------------------------------------------------------------------------------------------------